Struct type_identity

Synopsis

#include <src/entt/core/type_traits.hpp>

template<typename Type>
struct type_identity

Description

Identity type trait.

Useful to establish non-deduced contexts in template argument deduction (waiting for C++20) or to provide types through function arguments.

Template Parameters

Type - A type.

Source

Lines 50-54 in src/entt/core/type_traits.hpp.

template<typename Type>
struct type_identity {
    /*! @brief Identity type. */
    using type = Type;
};





Add Discussion

Log in to comment