Skip to content

IntegerOps::bitmask_subset

Determines if one bitmask is a subset of another. Returns true if the bits set in the first argument form a subset of the bits set in the second argument.

Synopsis

Declared in <src/Rose/StringUtility/IntegerOps.h>

template<typename T>
bool
bitmask_subset(
    T m1,
    T m2);

Return Value

True if m1 is a subset of m2.

Parameters

Name

Description

m1

Candidate subset mask.

m2

Candidate superset mask.

Created with MrDocs