isBitSet overloads

Synopses

Declared in <bdlb_bitutil.h>

Return whether the bit at index in value is set.

static
bool
isBitSet(
    unsigned int value,
    int index);

Same as the unsigned int overload.

static
bool
isBitSet(
    unsigned long value,
    int index);

Same as the unsigned int overload.

static
bool
isBitSet(
    unsigned long long value,
    int index);

Return Value

true if the bit is set, and false otherwise

Parameters

Name

Description

value

value to inspect

index

bit position to test

Created with MrDocs