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

operator id_typeReturns the sequential identifier of a given type.
valueReturns the sequential identifier of a given type.

Source

Lines 91-104 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;
    }

    /*! @copydoc value */
    [[nodiscard]] constexpr operator id_type() const ENTT_NOEXCEPT { return value(); }
};





Add Discussion

Log in to comment