OpenBarnyard
 
Loading...
Searching...
No Matches
T2UniqueValue.h
Go to the documentation of this file.
1#pragma once
2
4
5//-----------------------------------------------------------------------------
6// Purpose: This class is a helper that allows to create an unique variable
7// that can be accessed at compile time by type T and numerical ID.
8//-----------------------------------------------------------------------------
9template <class T, size_t ID>
11{
12 inline static T value = T();
13};
14
#define TOSHI_NAMESPACE_START
Definition Defines.h:47
#define TOSHI_NAMESPACE_END
Definition Defines.h:50