std::bit_not
Defined in header <functional> | ? | ? |
---|---|---|
template< class T = void > struct bit_not; | ? | (since C++14) |
函数对象,用于按位执行NOT。有效呼叫operator~
论类型T
...
专门性
The standard library provides a specialization of std::bit_not when T is not specified, which leaves the parameter types and return type to be deduced. bit_not<void> function object implementing ~x deducing argument and return types (class template specialization) | bit_not<void> | function object implementing ~x deducing argument and return types (class template specialization) | (since C++14) |
---|---|---|---|
bit_not<void> | function object implementing ~x deducing argument and return types (class template specialization) |
成员类型
Type | Definition |
---|---|
result_type(deprecated in C++17) | T |
argument_type(deprecated in C++17) | T |
成员函数
operator() | returns the result of bitwise NOT of its argument (public member function) |
---|
STD:BIT[医]否::操作员%28%29
constexpr T operator()( const T& arg ) const; | ? | ? |
---|
按位返回的结果arg
...
参数
arg | - | value to compute bitwise NOT of |
---|
返回值
结果~arg
...
例外
%280%29
可能的实施
常数T算子%28%29%28 const T&Arg%29 Const{Ref~Arg;}
*。
? cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com