C++ : BitmaskType
cppreference.com
, . std::bitset ( ) .
, , Ci Cj, Ci & Ci , Ci & Cj . , 0 .
operator&, operator|, operator^, operator~, operator&=, operator|= operator^=, , , .
BitmaskType:
X |= Y
|
Y X
|
X &= ~Y
|
Y X
|
X & Y
|
, Y X
|
inline ( C++17)constexpr .
BitmaskType:
- std::chars_format ( C++17)
- std::ctype_base::mask
- std::ios_base::fmtflags
- std::ios_base::iostate
- std::ios_base::openmode
- std::regex_traits::char_class_type ( C++11)
- std::regex_constants::syntax_option_type ( C++11)
- std::regex_constants::match_flag_type ( C++11)
- std::launch ( C++11)
- std::filesystem::perms ( C++17)
- std::filesystem::perm_options ( C++17)
- std::filesystem::copy_options ( C++17)
- std::filesystem::directory_options ( C++17)
, - (, int n = std::ios_base::hex) , std::ios_base::fmtflags int.