- std::bitset::to_ulong :Returns an unsigned long with the integer value that has the same bits set as the bitset.
If the bitset size is too big to be represented in a value of type unsigned long, the function throws an exception of type overflow_error. - std::bitset::reference :It accesses individual bits with an interface that emulates a reference to a bool.
- The size of a bitset is fixed at compile-time (determined by its template parameter). For a class that also optimizes for space allocation and allows for dynamic resizing, see the bool specialization of vector (vector<bool>).
- std::bitset::count :find its code
bitset文档阅读笔记
最新推荐文章于 2024-07-14 23:11:42 发布