首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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;}

*。

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com