Daily bit(e) of C++ | std::bit_and, std::bit_or, std::bit_xor, std::bit_not
Daily bit(e) of C++ #466, The four function objects that model bitwise operations: std::bit_and, std::bit_or, std::bit_xor, std::bit_not.
The four function objects std::bit_and, std::bit_or, std::bit_xor and std::bit_not model the functionality of the corresponding bit operators &, |, ^, ~.
As with all other function objects from the <functional> header, the void specialization will deduce the type from the arguments.