OpenBarnyard
Loading...
Searching...
No Matches
T2UniqueValue.h
Go to the documentation of this file.
1
#pragma once
2
3
TOSHI_NAMESPACE_START
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
//-----------------------------------------------------------------------------
9
template
<
class
T,
size_t
ID>
10
struct
T2UniqueValue
11
{
12
inline
static
T
value
= T();
13
};
14
15
TOSHI_NAMESPACE_END
TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_START
Definition
Defines.h:47
TOSHI_NAMESPACE_END
#define TOSHI_NAMESPACE_END
Definition
Defines.h:50
T2UniqueValue
Definition
T2UniqueValue.h:11
T2UniqueValue::value
static T value
Definition
T2UniqueValue.h:12
D:
_dev
OpenBarnyard
Source
Toshi
Source
Toshi
T2UniqueValue.h
Generated by
1.13.2