std::experi...al::negation(3)
π NAME π
std::experimental::negation β std::experimental::negation (the page title up top is std::experi...al::negation(3), and the manual name is C++ Standard Libary, so hi bestie π
).
β¨ Synopsis β¨
Defined in header <experimental/type_traits>
template< class B > (1) (library
fundamentals TS v2)
struct negation;
Forms the logical negation of the type trait B.
The type negation<B> is a UnaryTypeTrait with a base characteristic of std::integral_constant<bool, !bool(B::value)>.
π Template parameters π
Bβ any type such that the expressionbool(B::value)is a valid constant expression.
π¦ Helper variable template π¦
template< class B > (library
fundamentals TS v2)
constexpr bool negation_v = negation<B>::value;
π Inherited from std::integral_constant π
πΈ Member constants πΈ
valueβtrueifBhas a member::valuesuch that!bool(B::value)istrue,falseotherwise.[static](public static member constant).
π Member functions π
operator boolβ converts the object tobool, returnsvalue(public member function).operator()β returnsvalue(C++14)(public member function).
π Member types π
value_typeβbooltypeβstd::integral_constant<bool, value>
π₯ Possible implementation π₯
template<class B>
struct negation : std::integral_constant<bool, !bool(B::value)> {};
π Example π
This section is incomplete
Reason: no example
π See also π
negationβ logical NOT metafunction(C++17)(class template).
π§ Category π§
- Todo no example
mwah π source/version: http://cppreference.com, date: 2024.06.10 β and that's the whole vibe for std::experi...al::negation(3) π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms