Stroika Library
3.0d25
Help-Home
Loading...
Searching...
No Matches
UniqueID.inl
1
/*
2
* Copyright(c) Sophist Solutions, Inc. 1990-2026. All rights reserved
3
*/
4
#include "
Stroika/Foundation/Characters/ToString.h
"
5
6
namespace
Stroika::Foundation::Common
{
7
8
/*
9
********************************************************************************
10
****************************** Common::UniqueID ********************************
11
********************************************************************************
12
*/
13
template
<
typename
TAG>
14
constexpr
UniqueID<TAG>::UniqueID (uint64_t
id
)
15
: fID_{id}
16
{
17
}
18
template
<
typename
TAG>
19
inline
auto
UniqueID<TAG>::New
() ->
UniqueID
20
{
21
return
UniqueID
{++Private_::sUniqueIDLast_};
22
}
23
template
<
typename
TAG>
24
inline
Characters::String
UniqueID<TAG>::ToString
()
const
25
{
26
return
Characters::ToString (fID_);
27
}
28
29
}
ToString.h
Stroika::Foundation::Characters::String
String is like std::u32string, except it is much easier to use, often much more space efficient,...
Definition
String.h:201
Stroika::Foundation::Common::UniqueID
An opaque ID - each New () one never given before, in this process - of a type of its own for each TA...
Definition
UniqueID.h:50
Stroika::Foundation::Common
Definition
Character.inl:615
Library
Sources
Stroika
Foundation
Common
UniqueID.inl
Generated by
1.9.8