Skip to content

M_CodeJam_Arithmetic_OperatorsFactory_IsAnyFlagSetOperator__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

OperatorsFactory.IsAnyFlagSetOperator(T) Method

Emits code for (flag == 0) || ((value & flag) != 0) check.

Namespace: CodeJam.Arithmetic
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static Func<T, T, bool> IsAnyFlagSetOperator<T>()

VB

Public Shared Function IsAnyFlagSetOperator(Of T) As Func(Of T, T, Boolean)

F#

static member IsAnyFlagSetOperator : unit -> Func<'T, 'T, bool> 

Type Parameters

 

T
The type of the operands

Return Value

Type: Func(T, T, Boolean)
Callback for (flag == 0) || ((value & flag) != 0) check

See Also

Reference

OperatorsFactory Class
CodeJam.Arithmetic Namespace

Clone this wiki locally