Standard library header <type_traits> (C++11)
From cppreference.net
Dieser Header ist Teil der Metaprogrammierungs Bibliothek.
Klassen |
|
Hilfsklassen |
|
|
(C++11)
(C++17)
|
Kompilierzeitkonstante des angegebenen Typs mit angegebenem Wert
(Klassentemplate) |
true_type
|
std:: integral_constant < bool , true > |
false_type
|
std:: integral_constant < bool , false > |
Primäre Typkategorien |
|
|
(C++11)
|
prüft, ob ein Typ
void
ist
(Klassentemplate) |
|
(C++11)
(
DR*
)
|
prüft, ob ein Typ
std::nullptr_t
ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein integraler Typ ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein Gleitkommatyp ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein Array-Typ ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein Aufzählungstyp ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein Union-Typ ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein Nicht-Union-Klassentyp ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein Funktionstyp ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein Zeigertyp ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein
lvalue reference
ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein
rvalue reference
ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein nicht-statisches Member-Objekt-Zeiger ist
(Klassen-Template) |
|
(C++11)
|
prüft, ob ein Typ ein Zeiger auf eine nicht-statische Memberfunktion ist
(Klassentemplate) |
Zusammengesetzte Typkategorien |
|
|
(C++11)
|
prüft, ob ein Typ ein fundamentaler Typ ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein arithmetischer Typ ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein skalarer Typ ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein Objekttyp ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein zusammengesetzter Typ ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ entweder ein
lvalue reference
oder
rvalue reference
ist
(class template) |
|
(C++11)
|
prüft, ob ein Typ ein Zeiger auf eine nicht-statische Member-Funktion oder ein nicht-statisches Member-Objekt ist
(Klassen-Template) |
Typeigenschaften |
|
|
(C++11)
|
prüft, ob ein Typ const-qualifiziert ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ volatile-qualifiziert ist
(Klassentemplate) |
|
(C++11)
(veraltet in C++26)
|
prüft, ob ein Typ trivial ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ trivial kopierbar ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein
Standard-Layout
Typ ist
(Klassentemplate) |
|
(C++11)
(veraltet in C++20)
|
prüft, ob ein Typ ein Plain-Old-Data (POD) Typ ist
(Klassentemplate) |
|
(C++11)
(veraltet in C++17)
(entfernt in C++20)
|
prüft, ob ein Typ ein Literaltyp ist
(Klassentemplate) |
|
prüft, ob jedes Bit in der Objektdarstellung des Typs zu seinem Wert beiträgt
(Klassentemplate) |
|
|
(C++11)
|
prüft, ob ein Typ ein Klassentyp (aber kein Union-Typ) ist und keine nicht-statischen Datenelemente besitzt
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein polymorpher Klassentyp ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein abstrakter Klassentyp ist
(Klassentemplate) |
|
(C++14)
|
prüft, ob ein Typ ein finaler Klassentyp ist
(Klassentemplate) |
|
(C++17)
|
prüft, ob ein Typ ein Aggregat-Typ ist
(Klassentemplate) |
|
(C++23)
|
prüft, ob ein Typ ein Implicit-Lifetime-Typ ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein vorzeichenbehafteter arithmetischer Typ ist
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ ein vorzeichenloser arithmetischer Typ ist
(Klassentemplate) |
|
(C++20)
|
prüft, ob ein Typ ein Array-Typ mit bekannter Grenze ist
(Klassen-Template) |
|
(C++20)
|
prüft, ob ein Typ ein Array-Typ unbekannter Größe ist
(Klassentemplate) |
|
(C++23)
|
prüft, ob ein Typ ein scoped enumeration type ist
(Klassentemplate) |
Unterstützte Operationen |
|
|
(C++11)
(C++11)
(C++11)
|
prüft, ob ein Typ einen Konstruktor für spezifische Argumente besitzt
(Klassentemplate) |
|
(C++11)
(C++11)
(C++11)
|
prüft, ob ein Typ einen Standardkonstruktor besitzt
(Klassentemplate) |
|
(C++11)
(C++11)
(C++11)
|
prüft, ob ein Typ einen Kopierkonstruktor besitzt
(Klassentemplate) |
|
(C++11)
(C++11)
(C++11)
|
prüft, ob ein Typ aus einem Rvalue-Referenz konstruiert werden kann
(Klassentemplate) |
|
(C++11)
(C++11)
(C++11)
|
prüft, ob ein Typ einen Zuweisungsoperator für ein spezifisches Argument besitzt
(Klassentemplate) |
|
(C++11)
(C++11)
(C++11)
|
prüft, ob ein Typ einen Kopierzuweisungsoperator besitzt
(Klassentemplate) |
|
(C++11)
(C++11)
(C++11)
|
prüft, ob ein Typ einen Move-Zuweisungsoperator besitzt
(Klassentemplate) |
|
(C++11)
(C++11)
(C++11)
|
prüft, ob ein Typ einen nicht gelöschten Destruktor besitzt
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ einen virtuellen Destruktor besitzt
(Klassentemplate) |
|
(C++17)
(C++17)
(C++17)
(C++17)
|
prüft, ob Objekte eines Typs mit Objekten desselben oder eines anderen Typs getauscht werden können
(Klassentemplate) |
|
prüft, ob eine Referenz an ein temporäres Objekt in der Copy-Initialisierung gebunden ist
(Klassentemplate) |
|
|
prüft, ob eine Referenz an ein temporäres Objekt in der Direktinitialisierung gebunden ist
(Klassentemplate) |
|
Eigenschaftsabfragen |
|
|
(C++11)
|
ermittelt die Ausrichtungsanforderungen eines Typs
(Klassentemplate) |
|
(C++11)
|
ermittelt die Anzahl der Dimensionen eines Array-Typs
(Klassentemplate) |
|
(C++11)
|
ermittelt die Größe eines Array-Typs entlang einer bestimmten Dimension
(Klassentemplate) |
Typbeziehungen |
|
|
(C++11)
|
prüft, ob zwei Typen identisch sind
(Klassentemplate) |
|
(C++11)
|
prüft, ob ein Typ eine Basis eines anderen Typs ist
(Klassentemplate) |
|
(C++26)
|
prüft, ob ein Typ eine virtuelle Basis eines anderen Typs ist
(Klassentemplate) |
|
(C++11)
(C++20)
|
prüft, ob ein Typ in den anderen Typ konvertiert werden kann
(Klassentemplate) |
|
(C++20)
|
prüft, ob zwei Typen
layout-kompatibel
sind
(Klassentemplate) |
|
prüft, ob ein Typ eine
zeigerinterkonvertierbare
(anfängliche) Basis eines anderen Typs ist
(Klassentemplate) |
|
|
prüft, ob ein Typ mit den gegebenen Argumenttypen aufgerufen werden kann (als ob durch
std::invoke
)
(Klassentemplate) |
|
Const-Volatilitäts-Spezifizierer |
|
|
(C++11)
(C++11)
(C++11)
|
entfernt
const
und/oder
volatile
Spezifizierer vom gegebenen Typ
(Klassen-Template) |
|
(C++11)
(C++11)
(C++11)
|
fügt
const
und/oder
volatile
Spezifizierer zum gegebenen Typ hinzu
(Klassentemplate) |
Referenzen |
|
|
(C++11)
|
entfernt eine Referenz vom gegebenen Typ
(Klassentemplate) |
|
(C++11)
(C++11)
|
fügt dem gegebenen Typ eine
lvalue
- oder
rvalue
-Referenz hinzu
(Klassentemplate) |
Zeiger |
|
|
(C++11)
|
entfernt einen Zeiger vom gegebenen Typ
(Klassen-Template) |
|
(C++11)
|
fügt einen Zeiger zum gegebenen Typ hinzu
(Klassentemplate) |
Vorzeichenmodifikatoren |
|
|
(C++11)
|
Ermittelt den entsprechenden vorzeichenbehafteten Typ für den gegebenen Ganzzahltyp
(Klassentemplate) |
|
(C++11)
|
Ermittelt den entsprechenden vorzeichenbehafteten Typ für den gegebenen Ganzzahltyp
(Klassentemplate) |
Arrays |
|
|
(C++11)
|
entfernt eine Dimension vom gegebenen Array-Typ
(Klassentemplate) |
|
(C++11)
|
entfernt alle Dimensionen vom gegebenen Array-Typ
(Klassen-Template) |
Verschiedene Transformationen |
|
|
(since C++11)
(deprecated in C++23)
|
definiert den Typ, der als nicht initialisierter Speicher für Typen gegebener Größe verwendet werden kann
(Klassentemplate) |
|
(since C++11)
(deprecated in C++23)
|
definiert den Typ, der als nicht initialisierter Speicher für alle gegebenen Typen geeignet ist
(Klassen-Template) |
|
(C++11)
|
wendet Typumwandlungen an, wie sie beim Übergeben eines Funktionsarguments als Wert erfolgen
(Klassentemplate) |
|
(C++20)
|
kombiniert
std::remove_cv
und
std::remove_reference
(Klassen-Template) |
|
(C++11)
|
entfernt bedingt
eine Funktionsüberladung oder Templatespezialisierung
aus der Überladungsauflösung
(Klassentemplate) |
|
(C++11)
|
wählt einen von zwei Typen basierend auf einem Compile-time Boolean aus
(Klassentemplate) |
|
(C++11)
|
bestimmt den gemeinsamen Typ einer Gruppe von Typen
(Klassentemplate) |
|
bestimmt den gemeinsamen Referenztyp einer Gruppe von Typen
(Klassentemplate) |
|
|
(C++11)
|
Ermittelt den zugrundeliegenden Ganzzahltyp für einen gegebenen Aufzählungstyp
(Klassentemplate) |
|
(C++11)
(entfernt in C++20)
(C++17)
|
leitet den Ergebnistyp des Aufrufs eines aufrufbaren Objekts mit einer Menge von Argumenten ab
(Klassentemplate) |
|
(C++17)
|
void variadische Alias-Vorlage
(Alias-Vorlage) |
|
(C++20)
|
gibt den Typargument unverändert zurück
(Klassentemplate) |
|
(C++20)
(C++20)
|
den Referenztyp abrufen, der in
std::reference_wrapper
eingepackt ist
(Klassentemplate) |
Operationen auf Traits |
|
|
(C++17)
|
variadische logische UND-Metafunktion
(Klassentemplate) |
|
(C++17)
|
variadische logische ODER-Metafunktion
(Klassentemplate) |
|
(C++17)
|
Logische NOT-Metafunktion
(Klassentemplate) |
Funktionen |
|
Mitgliederbeziehungen |
|
|
prüft, ob Objekte eines Typs
zeigerinterkonvertierbar
mit dem spezifizierten Unterobjekt dieses Typs sind
(Funktions-Template) |
|
|
(C++20)
|
prüft, ob zwei angegebene Member einander in der gemeinsamen initialen Teilsequenz zweier angegebener Typen entsprechen
(Funktions-Template) |
Kontext der konstanten Auswertung |
|
|
(C++20)
|
erkennt, ob der Aufruf in einem konstant ausgewerteten Kontext erfolgt
(Funktion) |
|
(C++26)
|
überprüft, ob ein Zeiger sich innerhalb der Lebensdauer des Objekts befindet, zur Compile-Zeit
(Funktion) |
Übersicht
namespace std { // Hilfsklasse template<class T, T v> struct integral_constant; template<bool B> using bool_constant = integral_constant<bool, B>; using true_type = bool_constant<true>; using false_type = bool_constant<false>; // primäre Typkategorien template<class T> struct is_void; template<class T> struct is_null_pointer; template<class T> struct is_integral; template<class T> struct is_floating_point; template<class T> struct is_array; template<class T> struct is_pointer; template<class T> struct is_lvalue_reference; template<class T> struct is_rvalue_reference; template<class T> struct is_member_object_pointer; template<class T> struct is_member_function_pointer; template<class T> struct is_enum; template<class T> struct is_union; template<class T> struct is_class; template<class T> struct is_function; // zusammengesetzte Typkategorien template<class T> struct is_reference; template<class T> struct is_arithmetic; template<class T> struct is_fundamental; template<class T> struct is_object; template<class T> struct is_scalar; template<class T> struct is_compound; template<class T> struct is_member_pointer; // Typ-Eigenschaften template<class T> struct is_const; template<class T> struct is_volatile; template<class T> struct is_trivial; template<class T> struct is_trivially_copyable; template<class T> struct is_standard_layout; template<class T> struct is_empty; template<class T> struct is_polymorphic; template<class T> struct is_abstract; template<class T> struct is_final; template<class T> struct is_aggregate; template<class T> struct is_signed; template<class T> struct is_unsigned; template<class T> struct is_bounded_array; template<class T> struct is_unbounded_array; template<class T> struct is_scoped_enum; template<class T, class... Args> struct is_constructible; template<class T> struct is_default_constructible; template<class T> struct is_copy_constructible; template<class T> struct is_move_constructible; template<class T, class U> struct is_assignable; template<class T> struct is_copy_assignable; template<class T> struct is_move_assignable; template<class T, class U> struct is_swappable_with; template<class T> struct is_swappable; template<class T> struct is_destructible; template<class T, class... Args> struct is_trivially_constructible; template<class T> struct is_trivially_default_constructible; template<class T> struct is_trivially_copy_constructible; template<class T> struct is_trivially_move_constructible; template<class T, class U> struct is_trivially_assignable; template<class T> struct is_trivially_copy_assignable; template<class T> struct is_trivially_move_assignable; template<class T> struct is_trivially_destructible; template<class T, class... Args> struct is_nothrow_constructible; template<class T> struct is_nothrow_default_constructible; template<class T> struct is_nothrow_copy_constructible; template<class T> struct is_nothrow_move_constructible; template<class T, class U> struct is_nothrow_assignable; template<class T> struct is_nothrow_copy_assignable; template<class T> struct is_nothrow_move_assignable; template<class T, class U> struct is_nothrow_swappable_with; template<class T> struct is_nothrow_swappable; template<class T> struct is_nothrow_destructible; template<class T> struct has_virtual_destructor; template<class T> struct has_unique_object_representations; template<class T, class U> struct reference_constructs_from_temporary; template<class T, class U> struct reference_converts_from_temporary; // Typ-Eigenschaftsabfragen template<class T> struct alignment_of; template<class T> struct rank; template<class T, unsigned I = 0> struct extent; // Typbeziehungen template<class T, class U> struct is_same; template<class Base, class Derived> struct is_base_of; template<class Base, class Derived> struct is_virtual_base_of; template<class From, class To> struct is_convertible; template<class From, class To> struct is_nothrow_convertible; template<class T, class U> struct is_layout_compatible; template<class Base, class Derived> struct is_pointer_interconvertible_base_of; template<class Fn, class... ArgTypes> struct is_invocable; template<class R, class Fn, class... ArgTypes> struct is_invocable_r; template<class Fn, class... ArgTypes> struct is_nothrow_invocable; template<class R, class Fn, class... ArgTypes> struct is_nothrow_invocable_r; // const-volatile Modifikationen template<class T> struct remove_const; template<class T> struct remove_volatile; template<class T> struct remove_cv; template<class T> struct add_const; template<class T> struct add_volatile; template<class T> struct add_cv; template<class T> using remove_const_t = typename remove_const<T>::type; template<class T> using remove_volatile_t = typename remove_volatile<T>::type; template<class T> using remove_cv_t = typename remove_cv<T>::type; template<class T> using add_const_t = typename add_const<T>::type; template<class T> using add_volatile_t = typename add_volatile<T>::type; template<class T> using add_cv_t = typename add_cv<T>::type; // Referenzmodifikationen template<class T> struct remove_reference; template<class T> struct add_lvalue_reference; template<class T> struct add_rvalue_reference; template<class T> using remove_reference_t = typename remove_reference<T>::type; template<class T> using add_lvalue_reference_t = typename add_lvalue_reference<T>::type; template<class T> using add_rvalue_reference_t = typename add_rvalue_reference<T>::type; // Vorzeichenänderungen template<class T> struct make_signed; template<class T> struct make_unsigned; template<class T> using make_signed_t = typename make_signed<T>::type; template<class T> using make_unsigned_t = typename make_unsigned<T>::type; // Array-Modifikationen template<class T> struct remove_extent; template<class T> struct remove_all_extents; template<class T> using remove_extent_t = typename remove_extent<T>::type; template<class T> using remove_all_extents_t = typename remove_all_extents<T>::type; // Zeiger-Modifikationen template<class T> struct remove_pointer; template<class T> struct add_pointer; template<class T> using remove_pointer_t = typename remove_pointer<T>::type; template<class T> using add_pointer_t = typename add_pointer<T>::type; // andere Transformationen template<class T> struct type_identity; template<class T> struct remove_cvref; template<class T> struct decay; template<bool, class T = void> struct enable_if; template<bool, class T, class F> struct conditional; template<class... T> struct common_type; template<class T, class U, template<class> class TQual, template<class> class UQual> struct basic_common_reference { }; template<class... T> struct common_reference; template<class T> struct underlying_type; template<class Fn, class... ArgTypes> struct invoke_result; template<class T> struct unwrap_reference; template<class T> struct unwrap_ref_decay; template<class T> using type_identity_t = typename type_identity<T>::type; template<class T> using remove_cvref_t = typename remove_cvref<T>::type; template<class T> using decay_t = typename decay<T>::type; template<bool b, class T = void> using enable_if_t = typename enable_if<b, T>::type; template<bool b, class T, class F> using conditional_t = typename conditional<b, T, F>::type; template<class... T> using common_type_t = typename common_type<T...>::type; template<class... T> using common_reference_t = typename common_reference<T...>::type; template<class T> using underlying_type_t = typename underlying_type<T>::type; template<class Fn, class... ArgTypes> using invoke_result_t = typename invoke_result<Fn, ArgTypes...>::type; template<class T> using unwrap_reference_t = typename unwrap_reference<T>::type; template<class T> using unwrap_ref_decay_t = typename unwrap_ref_decay<T>::type; template<class...> using void_t = void; // logische Operatoren-Traits template<class... B> struct conjunction; template<class... B> struct disjunction; template<class B> struct negation; // primäre Typkategorien template<class T> inline constexpr bool is_void_v = is_void<T>::value; template<class T> inline constexpr bool is_null_pointer_v = is_null_pointer<T>::value; template<class T> inline constexpr bool is_integral_v = is_integral<T>::value; template<class T> inline constexpr bool is_floating_point_v = is_floating_point<T>::value; template<class T> inline constexpr bool is_array_v = is_array<T>::value; template<class T> inline constexpr bool is_pointer_v = is_pointer<T>::value; template<class T> inline constexpr bool is_lvalue_reference_v = is_lvalue_reference<T>::value; template<class T> inline constexpr bool is_rvalue_reference_v = is_rvalue_reference<T>::value; template<class T> inline constexpr bool is_member_object_pointer_v = is_member_object_pointer<T>::Wert; template<class T> inline constexpr bool is_member_function_pointer_v = is_member_function_pointer<T>::Wert; template<class T> inline constexpr bool is_enum_v = is_enum<T>::Wert; template<class T> inline constexpr bool is_union_v = is_union<T>::value; template<class T> inline constexpr bool is_class_v = is_class<T>::Wert; template<class T> inline constexpr bool is_function_v = is_function<T>::Wert; // zusammengesetzte Typkategorien template<class T> inline constexpr bool is_reference_v = is_reference<T>::Wert; template<class T> inline constexpr bool is_arithmetic_v = is_arithmetic<T>::value; template<class T> inline constexpr bool is_fundamental_v = is_fundamental<T>::value; template<class T> inline constexpr bool is_object_v = is_object<T>::value; template<class T> inline constexpr bool is_scalar_v = is_scalar<T>::value; template<class T> inline constexpr bool is_compound_v = is_compound<T>::value; template<class T> inline constexpr bool is_member_pointer_v = is_member_pointer<T>::value; // Typ-Eigenschaften template<class T> inline constexpr bool is_const_v = is_const<T>::value; template<class T> inline constexpr bool is_volatile_v = is_volatile<T>::value; template<class T> inline constexpr bool is_trivial_v = is_trivial<T>::value; template<class T> inline constexpr bool is_trivially_copyable_v = is_trivially_copyable<T>::value; template<class T> inline constexpr bool is_standard_layout_v = is_standard_layout<T>::value; template<class T> inline constexpr bool is_empty_v = is_empty<T>::value; template<class T> inline constexpr bool is_polymorphic_v = is_polymorphic<T>::value; template<class T> inline constexpr bool is_abstract_v = is_abstract<T>::value; template<class T> inline constexpr bool is_final_v = is_final<T>::value; template<class T> inline constexpr bool is_aggregate_v = is_aggregate<T>::Wert; template<class T> inline constexpr bool is_signed_v = is_signed<T>::Wert; template<class T> inline constexpr bool is_unsigned_v = is_unsigned<T>::Wert; template<class T> inline constexpr bool is_bounded_array_v = is_bounded_array<T>::value; template<class T> inline constexpr bool is_unbounded_array_v = is_unbounded_array<T>::value; template<class T> inline constexpr bool is_scoped_enum_v = is_scoped_enum<T>::value; template<class T, class... Args> inline constexpr bool is_constructible_v = is_constructible<T, Args...>::value; template<class T> inline constexpr bool is_default_constructible_v = is_default_constructible<T>::Wert; template<class T> inline constexpr bool is_copy_constructible_v = is_copy_constructible<T>::value; template<class T> inline constexpr bool is_move_constructible_v = is_move_constructible<T>::value; template<class T, class U> inline constexpr bool is_assignable_v = is_assignable<T, U>::value; template<class T> inline constexpr bool is_copy_assignable_v = is_copy_assignable<T>::value; template<class T> inline constexpr bool is_move_assignable_v = is_move_assignable<T>::value; template<class T, class U> inline constexpr bool is_swappable_with_v = is_swappable_with<T, U>::value; template<class T> inline constexpr bool is_swappable_v = is_swappable<T>::value; template<class T> inline constexpr bool is_destructible_v = is_destructible<T>::value; template<class T, class... Args> inline constexpr bool is_trivially_constructible_v = is_trivially_constructible<T, Args...>::value; template<class T> inline constexpr bool is_trivially_default_constructible_v = is_trivially_default_constructible<T>::Wert; template<class T> inline constexpr bool is_trivially_copy_constructible_v = is_trivially_copy_constructible<T>::Wert; template<class T> inline constexpr bool is_trivially_move_constructible_v = is_trivially_move_constructible<T>::Wert; template<class T, class U> inline constexpr bool is_trivially_assignable_v = is_trivially_assignable<T, U>::value; template<class T> inline constexpr bool is_trivially_copy_assignable_v = is_trivially_copy_assignable<T>::Wert; template<class T> inline constexpr bool is_trivially_move_assignable_v = is_trivially_move_assignable<T>::value; template<class T> inline constexpr bool is_trivially_destructible_v = is_trivially_destructible<T>::value; template<class T, class... Args> inline constexpr bool is_nothrow_constructible_v = is_nothrow_constructible<T, Args...>::value; template<class T> inline constexpr bool is_nothrow_default_constructible_v = is_nothrow_default_constructible<T>::value; template<class T> inline constexpr bool is_nothrow_copy_constructible_v = is_nothrow_copy_constructible<T>::value; template<class T> inline constexpr bool is_nothrow_move_constructible_v = is_nothrow_move_constructible<T>::value; template<class T, class U> inline constexpr bool is_nothrow_assignable_v = is_nothrow_assignable<T, U>::value; template<class T> inline constexpr bool is_nothrow_copy_assignable_v = is_nothrow_copy_assignable<T>::value; template<class T> inline constexpr bool is_nothrow_move_assignable_v = is_nothrow_move_assignable<T>::value; template<class T, class U> inline constexpr bool is_nothrow_swappable_with_v = is_nothrow_swappable_with<T, U>::value; template<class T> inline constexpr bool is_nothrow_swappable_v = is_nothrow_swappable<T>::value; template<class T> inline constexpr bool is_nothrow_destructible_v = is_nothrow_destructible<T>::value; template<class T> inline constexpr bool has_virtual_destructor_v = has_virtual_destructor<T>::value; template<class T> inline constexpr bool has_unique_object_representations_v = has_unique_object_representations<T>::value; template<class T, class U> inline constexpr bool reference_constructs_from_temporary_v = reference_constructs_from_temporary<T, U>::value; template<class T, class U> inline constexpr bool reference_converts_from_temporary_v = reference_converts_from_temporary<T, U>::value; // Typ-Eigenschaftsabfragen template<class T> inline constexpr size_t alignment_of_v = alignment_of<T>::value; template<class T> inline constexpr size_t rank_v = rank<T>::value; template<class T, unsigned I = 0> inline constexpr size_t extent_v = extent<T, I>::value; // Typbeziehungen template<class T, class U> inline constexpr bool is_same_v = is_same<T, U>::value; template<class Base, class Derived> inline constexpr bool is_base_of_v = is_base_of<Base, Derived>::value; template<class Base, class Derived> inline constexpr bool is_virtual_base_of_v = is_virtual_base_of<Base, Derived>::value; template<class From, class To> inline constexpr bool is_convertible_v = is_convertible<From, To>::value; template<class From, class To> inline constexpr bool is_nothrow_convertible_v = is_nothrow_convertible<From, To>::value; template<class T, class U> inline constexpr bool is_layout_compatible_v = is_layout_compatible<T, U>::value; template<class Base, class Derived> inline constexpr bool is_pointer_interconvertible_base_of_v = is_pointer_interconvertible_base_of<Base, Derived>::value; template<class Fn, class... ArgTypes> inline constexpr bool is_invocable_v = is_invocable<Fn, ArgTypes...>::Wert; template<class R, class Fn, class... ArgTypes> inline constexpr bool is_invocable_r_v = is_invocable_r<R, Fn, ArgTypes...>::value; template<class Fn, class... ArgTypes> inline constexpr bool is_nothrow_invocable_v = is_nothrow_invocable<Fn, ArgTypes...>::value; template<class R, class Fn, class... ArgTypes> inline constexpr bool is_nothrow_invocable_r_v = is_nothrow_invocable_r<R, Fn, ArgTypes...>::value; // logische Operatoren-Traits template<class... B> inline constexpr bool conjunction_v = conjunction<B...>::Wert; template<class... B> inline constexpr bool disjunction_v = disjunction<B...>::Wert; template<class B> inline constexpr bool negation_v = negation<B>::value; // Mitgliederbeziehungen template<class S, class M> constexpr bool is_pointer_interconvertible_with_class(M S::*m) noexcept; template<class S1, class S2, class M1, class M2> constexpr bool is_corresponding_member(M1 S1::*m1, M2 S2::*m2) noexcept; // Kontext der konstanten Auswertung constexpr bool is_constant_evaluated() noexcept; consteval bool is_within_lifetime(const auto*) noexcept; }
Klassentemplate std::integral_constant
namespace std { template <class T, T v> struct integral_constant { static constexpr T value = v; using value_type = T; using type = integral_constant<T, v>; constexpr operator value_type() const noexcept { return value; } constexpr value_type operator()() const noexcept { return value; } }; }