Files
cppdraft_translate/cppdraft/bitset/syn.md
2025-10-25 03:02:53 +03:00

1.4 KiB

[bitset.syn]

22 General utilities library [utilities]

22.9 Bitsets [bitset]

22.9.1 Header synopsis [bitset.syn]

1

#

The header defines a class template and several related functions for representing and manipulating fixed-size sequences of bits.

#include // see [string.syn]#include // for istream ([istream.syn]), ostream ([ostream.syn]), see [iosfwd.syn]namespace std {template<size_t N> class bitset; // [bitset.operators], bitset operatorstemplate<size_t N>constexpr bitset operator&(const bitset&, const bitset&) noexcept; template<size_t N>constexpr bitset operator|(const bitset&, const bitset&) noexcept; template<size_t N>constexpr bitset operator^(const bitset&, const bitset&) noexcept; template<class charT, class traits, size_t N> basic_istream<charT, traits>&operator>>(basic_istream<charT, traits>& is, bitset& x); template<class charT, class traits, size_t N> basic_ostream<charT, traits>&operator<<(basic_ostream<charT, traits>& os, const bitset& x);}