[bitwise.operations.not] (original) (raw)

20 General utilities library [utilities]

20.14 Function objects [function.objects]

20.14.11 Bitwise operations [bitwise.operations]

20.14.11.5 Class template bit_­not [bitwise.operations.not]

template<class T = void> struct bit_not { constexpr T operator()(const T& x) const;};

constexpr T operator()(const T& x) const;

template<> struct bit_not<void> { template<class T> constexpr auto operator()(T&& t) const -> decltype(~std::forward<T>(t));using is_transparent = _unspecified_;};

template<class T> constexpr auto operator()(T&&) const -> decltype(~std::forward<T>(t));

Returns: ~std​::​forward<T>(t).