Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
etc
config
src
collapse_template_statics.lib.cpp
Go to the documentation of this file.
1
2
3
24
// also defined in COLLAPSE_TEMPLATE_STATICS.cpp
25
template
<
class
T>
26
struct
S
27
{
28
// multiple instances of `t' must be collapsed
29
static
T
t
;
30
};
31
32
template
<
class
T>
33
T
S<T>::t
;
34
35
36
#if defined (_WIN32) && defined (_DLL)
37
__declspec
(dllexport)
38
#endif
// _WIN32 && _DLL
39
int
bar
()
40
{
41
// S<int>::t instantiated and modified in COLLAPSE_TEMPLATE_STATICS.cpp
42
return
S<int>::t
++;
43
}
T
#define T
Definition
17.names.cpp:163
t
#define t
Definition
17.names.cpp:136
__declspec
__declspec(dllimport) void __stdcall InitializeCriticalSection(_RWSTD_CRITICAL_SECTION *)
bar
int bar()
Definition
collapse_template_statics.lib.cpp:39
S
Definition
COLLAPSE_TEMPLATE_STATICS.cpp:40
Generated by
1.9.8