C++ Language/Type/BitwiseRepresentation/BitFlags

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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)