std::bit_not
cppreference.com
<tbody>
</tbody>
template< class T = void > struct bit_not; |
( C++14) | |
. operator~ T.
std::bit_not, T , .
(C++14) |
, ~x ( ) |
result_type ( C++17)( C++20)
|
T
|
argument_type ( C++17)( C++20)
|
T
|
-
operator() (C++14) |
(public -) |
std::bit_not::operator()
<tbody> </tbody> constexpr T operator()( const T& arg ) const; |
( C++14) | |
arg.
| arg |
~arg.
, .
constexpr T operator()(const T& arg) const
{
return ~arg;
}
|
std::bit_not N3421 C++11, LWG 660 ( std::bit_not<>) , C++98/03.