sandbox
Loading...
Searching...
No Matches
sbx::utility::scoped_type_id< Scope, Type > Struct Template Reference

A scoped type ID generator. Allows for generating unique IDs for types within a specific scope. More...

#include <type_id.hpp>

Public Types

using type = Type
 
using scope = Scope
 

Public Member Functions

constexpr operator std::uint32_t () const noexcept
 

Static Public Member Functions

static auto value () noexcept -> std::uint32_t
 Generates a unique ID for the type. More...
 

Detailed Description

template<typename Scope, typename Type>
struct sbx::utility::scoped_type_id< Scope, Type >

A scoped type ID generator. Allows for generating unique IDs for types within a specific scope.

Template Parameters
ScopeThe scope in which the type ID is generated.
TypeThe type for which the ID is generated.

Member Function Documentation

◆ value()

template<typename Scope , typename Type >
static auto sbx::utility::scoped_type_id< Scope, Type >::value ( ) -> std::uint32_t
inlinestaticnoexcept

Generates a unique ID for the type.

Returns
A unique ID for the type.

The documentation for this struct was generated from the following file: