std::bit_not<void>
来自cppreference.com
< cpp | utility | functional
工具库
函数对象
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
旧式绑定器与适配器 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
在标头 <functional> 定义 | ||
template<> class bit_not<void>; | (C++14 起) | |
std::bit_not<void> 是会推导形参类型和返回类型的 std::bit_not 的特化。
嵌套类型
嵌套类型 | 定义 |
is_transparent | 未指定 |
成员函数
operator() | 应用 operator~ 到它的实参 (公开成员函数) |
std::bit_not<void>::operator()
template< class T > constexpr auto operator()( T&& arg ) const | ||
返回 ~std::forward<T>(arg) 的结果。
参数
arg | - | 要逐位非的值 |
返回值
~std::forward<T>(arg)。
示例
本节未完成 原因:暂无示例 |