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~ 를 적용합니다
(public member function)

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 ) .

예제