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
EXPORT.cpp
Go to the documentation of this file.
1
// checking for exported templates
2
3
25
#include "config.h"
26
27
#ifndef _RWSTD_NO_EXPORT_KEYWORD
28
29
// establish a dependency on EXPORT_KEYWORD.cpp which must be
30
// compiled first since it defines the exported function template
31
// LDOPTS = EXPORT_KEYWORD.o
32
#endif
// _RWSTD_NO_EXPORT_KEYWORD
33
34
35
export
template
<
class
T>
36
T
exported_function_template
(
T
);
37
38
export
template
<
class
T>
39
struct
ExportedClass
40
{
41
T
exported_class_member
(
T
);
42
};
43
44
template
<
class
T>
45
T
ExportedClass<T>::
46
exported_class_member
(
T
t
) {
47
return
exported_function_template
(
t
);
48
}
49
50
51
struct
MyClass
{
52
int
i_
;
53
MyClass
():
i_
(0) { }
54
};
55
56
57
int
main
()
58
{
59
MyClass
x
;
60
61
return
ExportedClass<MyClass>
().
exported_class_member
(
x
).i_;
62
}
T
#define T
Definition
17.names.cpp:163
t
#define t
Definition
17.names.cpp:136
x
#define x
Definition
17.names.cpp:140
exported_function_template
T exported_function_template(T)
Definition
EXPORT_KEYWORD.cpp:29
main
int main()
Definition
EXPORT.cpp:57
ExportedClass
Definition
EXPORT.cpp:40
ExportedClass::exported_class_member
T exported_class_member(T)
Definition
EXPORT.cpp:46
MyClass
Definition
EXPORT.cpp:51
MyClass::MyClass
MyClass()
Definition
EXPORT.cpp:53
MyClass::i_
int i_
Definition
EXPORT.cpp:52
Generated by
1.9.8