[test] updated tests using pointers for the mugiwara language
[ozulis.git] / src / core / id.hxx
blob847cfbfb8dcb73c7f0eb269a0ed25d469ef80016
1 namespace core
3 template <typename H>
4 id_t
5 IdBase<H>::nextId()
7 static id_t nextId_ = 0;
9 return nextId_++;
12 template <typename H, typename T>
13 id_t
14 Id<H, T>::id()
16 static id_t id_ = -1;
18 if (id_ == -1)
19 id_ = IdBase<H>::nextId();
20 return id_;