Skip to content

std::Meta Namespace

std::Meta

Template metaprogramming utilities for type manipulation and introspection

Functions

const_removed<T>

Removes const qualifier from a type

const_volatile_removed<T>

Removes both const and volatile qualifiers from a type

cvref_removed<T>

Removes const, volatile, and reference qualifiers from a type

as_const<T>

Converts a type to a const type

as_const_volatile<T>

Converts a type to a const volatile type

as_cvref<T>

Converts a type to a const volatile reference type

declval<T>

Provides a type that can be used to simulate an rvalue of the specified type

enable_if<Condition, T>

Enables a type if the condition is true

ref_as_ptr<T>

Converts a reference type to a pointer type

as_rvalue_reference<T>

Converts a type to an rvalue reference type

as_lvalue_reference<T>

Converts a type to an lvalue reference type

reference_removed<T>

Removes reference from a type

all_extents_removed<T>

Removes all extents from an array type