在线文档教程
C++
应用 | Utilities

std::bit_not

STD:BIT[医]不

Defined in header
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 function object implementing ~x deducing argument and return types (class template specialization)bit_notfunction 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)

成员类型

TypeDefinition
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。

http://en.cppreference.com/w/cpp/实用程序/Functional/BIT[医]不