Returns the non‐type template argument V, whose type is T

Synopsis

Declared in <mp‐units/ext/type_traits.h>

template<
    typename T,
    same_as<T> auto V>
[[nodiscard]]
consteval
auto
get();

Return Value

The value of V

Note

The return value should not be discarded.

Template Parameters

Name

Description

T

The type that V must have

V

The non‐type template argument to return

Created with MrDocs