Namespaces
Variants

std:: bit_not<void>

From cppreference.net
Utilities library
Function objects
Function invocation
(C++17) (C++23)
Identity function object
(C++20)
Old binders and adaptors
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
( until C++17* ) ( until C++17* )
( until C++17* ) ( until C++17* )

( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
定義先ヘッダ <functional>
template <>
class bit_not < void > ;
(C++14以降)

std:: bit_not < void > は、パラメータと戻り値の型が推論された std::bit_not の特殊化です。

目次

ネストされた型

ネスト型 定義
is_transparent unspecified

メンバー関数

operator()
引数に operator~ を適用する
(公開メンバ関数)

std::bit_not<void>:: operator()

template < class T >

constexpr auto operator ( ) ( T && arg ) const

- > decltype ( ~ std:: forward < T > ( arg ) ) ;

~ std:: forward < T > ( arg ) の結果を返します。

パラメータ

arg - ビット単位NOTを行う値

戻り値

~ std:: forward < T > ( arg )