std::experimental:: negation
|
Definiert in Header
<experimental/type_traits>
|
||
|
template
<
class
B
>
struct negation ; |
(1) | (Library Fundamentals TS v2) |
Bildet die logische Negation des Typmerkmals
B
.
Der Typ negation < B > ist ein UnaryTypeTrait mit einer Basiseigenschaft von std:: integral_constant < bool , ! bool ( B :: value ) > .
Inhaltsverzeichnis |
Template-Parameter
| B | - | jeder Typ, für den der Ausdruck bool ( B :: value ) ein gültiger konstanter Ausdruck ist |
Hilfsvariablen-Template
|
template
<
class
B
>
constexpr bool negation_v = negation < B > :: value ; |
(Library Fundamentals TS v2) | |
Geerbt von std:: integral_constant
Member-Konstanten
|
value
[static]
|
true
falls
B
ein Member
::value
besitzt, sodass
!
bool
(
B
::
value
)
gleich
true
ist,
false
andernfalls
(öffentliche statische Member-Konstante) |
Member-Funktionen
|
operator bool
|
konvertiert das Objekt zu
bool
, gibt
value
zurück
(öffentliche Member-Funktion) |
|
operator()
(C++14)
|
gibt
value
zurück
(öffentliche Member-Funktion) |
Member-Typen
| Typ | Definition |
value_type
|
bool |
type
|
std:: integral_constant < bool , value > |
Mögliche Implementierung
template<class B> struct negation : std::integral_constant<bool, !bool(B::value)> {}; |
Beispiel
|
Dieser Abschnitt ist unvollständig
Grund: Kein Beispiel |
Siehe auch
|
(C++17)
|
Logische-NICHT-Metafunktion
(Klassentemplate) |