std::bit_not

Header: <functional>

Function object for performing bitwise NOT. Effectively calls operator~ on type T.

# Declarations

template< class T = void >
struct bit_not;

(since C++14)

# Parameters

# Return value

The result of ~arg.

# Notes

Although std::bit_not is added via post-C++11 proposal N3421, it is treated as a part of the resolution for LWG issue 660 (except for its transparent specialization std::bit_not<>) by common implementations, and thus available in their C++98/03 mode.