bit_not 함수
해당 인수에서 비트 보수(NOT) 연산을 (단항 operator~) 수행하는 미리 정의된 함수 개체입니다.
template<class Type = void>
struct bit_not : public unary_function<Type, Type>
{
Type operator()(const Type& Right) const;
};
// specialized transparent functor for operator~
template<>
struct bit_not<void>
{
template<class Type>
auto operator()(Type&& Right) const
-> decltype(~std::forward<Type>(Right));
};
매개 변수
Type
단항 operator~ 을 지원하는 형식.Right
비트 보수 연산의 오른쪽 피연산자입니다. 특수화 되지 않은 템플릿은 Type 형식의 lvalue 참조 인수를 취합니다. 특수화 되지 않은 템플릿은 암시된 Type 형식의 lvalue 및 rvalue 참조 인수 형식의 전달을 완벽히 수행합니다.
반환 값
~Right 의 결과입니다. 특수화 된 템플릿은 operator~ 으로 반환되는 형식의 결과 전달을 완벽히 수행합니다.
설명
bit_not 함수 기호는 기본 데이터 형식에 대한 정수 계열 형식으로 또는 이진 operator~ 을 구현하는 사용자 정의 형식으로 제한됩니다.
요구 사항
헤더: <기능>
네임스페이스: std