Jump to content

C++ Language/Type/BitwiseRepresentation/BitFlags

From Wikibooks, open books for an open world

A variable whose type is std::bitset<5> stores five bits (five flags), which are individually accessed using array-indexing notation.

Additional information about bit flags (includes interactive examples)