Abstract
The last STL container type object that I cover is the bitset. I say STL type because the bitset is not strictly a container. It does not support iterators, the range-based for loops, or STL's algorithms. A bitset is used for tracking individual boolean values in a combined set. A traditional method for achieving the same result are flags implemented using bitwise operators and shifts.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Bruce Sutherland
About this chapter
Cite this chapter
Sutherland, B. (2014). STL’s bitset. In: Learn C++ for Game Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6458-3_18
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6458-3_18
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6457-6
Online ISBN: 978-1-4302-6458-3
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books