KisaragiLibrary
 
読み取り中…
検索中…
一致する文字列を見つけられません
IDGenerator.hpp
[詳解]
1#pragma once
2
3namespace Kisaragi_Lib
4{
5 template<typename IDCategory>
6 class IDGenerator final
7 {
8 public:
9 static unsigned int Get()
10 {
11 static unsigned id = nextId++;
12 return id;
13 }
14 private:
15 //inlineを付けるとクラス内で初期化できる
16 inline static unsigned int nextId = 0;
17 };
18}
Definition IDGenerator.hpp:7
static unsigned int Get()
Definition IDGenerator.hpp:9
static unsigned int nextId
Definition IDGenerator.hpp:16
Definition Accessor.hpp:110