Struct type_seq

Synopsis

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

template<typename Type, typename = void>
struct ENTT_API type_seq final

Description

Type sequential identifier.

Template Parameters

Type - Type for which to generate a sequential identifier.

Mentioned in

Methods

valueReturns the sequential identifier of a given type.

Source

Lines 59-69 in src/entt/core/type_info.hpp.

template<typename Type, typename = void>
struct ENTT_API type_seq final {
    /**
     * @brief Returns the sequential identifier of a given type.
     * @return The sequential identifier of a given type.
     */
    [[nodiscard]] static id_type value() ENTT_NOEXCEPT {
        static const id_type value = internal::type_seq::next();
        return value;
    }
};





Add Discussion

Log in to comment