repo.or.cz
/
ozulis.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
The compiler is now a Singleton
[ozulis.git]
/
src
/
core
/
singleton.hxx
blob
eaf612abb20f3bc1c7f70faff535db058e207403
1
namespace
core
2
{
3
template
<
typename T
>
4
inline
T
&
5
Singleton
<
T
>::
instance
()
6
{
7
static
T
*
instance_
=
new
T
;
8
9
return
*
instance_
;
10
}
11
}