Collection of static functions to generate a unique ID for data types.
More...
#include <Util.h>
|
| template<typename T > |
| static size_t | Get () noexcept |
| | Generates a unique ID for each template instantiation. The first ID is 1 to allow assigning a special meaning to 0.
|
| |
|
| static size_t | Make () noexcept |
| | Creates a new ID for each call.
|
| |
Collection of static functions to generate a unique ID for data types.
Definition at line 578 of file Util.h.
◆ Get()
template<typename T >
| static size_t Util::UniqueID::Get |
( |
| ) |
|
|
inlinestaticnoexcept |
Generates a unique ID for each template instantiation. The first ID is 1 to allow assigning a special meaning to 0.
- Template Parameters
-
| T | Type to return an ID for. |
- Returns
- Returns the ID related to
T.
Definition at line 588 of file Util.h.
◆ Make()
| size_t Util::UniqueID::Make |
( |
| ) |
|
|
staticprivatenoexcept |
Creates a new ID for each call.
- Returns
- Returns the new unique ID.
Definition at line 149 of file Util.cpp.
The documentation for this class was generated from the following files: