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
PART_SPEC_OVERLOAD.cpp
Go to the documentation of this file.
1
// checking partial ordering of function templates
2
3
25
template
<
class
T>
26
struct
S
{ };
27
28
template
<
class
T>
29
int
operator==
(
const
T
&
a
,
const
T
&
b
)
30
{
31
return
a
.
foobar
(
b
);
32
}
33
34
template
<
class
T>
35
int
foo
(
T
&
a
,
T
&
b
)
36
{
37
return
a
.foobar (
b
);
38
}
39
40
template
<
class
T>
41
int
operator==
(
const
S<T>
&,
const
S<T>
&)
// <-- testing
42
{
43
return
1;
44
}
45
46
template
<
class
T>
47
int
foo
(
S<T>
&
a
,
S<T>
&
b
)
// <-- testing
48
{
49
return
a
==
b
;
50
}
51
52
int
bar
()
53
{
54
S<int>
s
;
55
return
!(
s
==
s
&&
foo
(
s
,
s
));
56
}
T
#define T
Definition
17.names.cpp:163
a
#define a
Definition
17.names.cpp:109
b
#define b
Definition
17.names.cpp:110
s
#define s
Definition
rw_alg_test.h:221
operator==
int operator==(const T &a, const T &b)
Definition
PART_SPEC_OVERLOAD.cpp:29
bar
int bar()
Definition
PART_SPEC_OVERLOAD.cpp:52
foo
#define foo(buf, s,...)
Definition
VA_LIST_FUNC_MACRO.cpp:28
S
Definition
COLLAPSE_TEMPLATE_STATICS.cpp:40
S::foobar
void foobar()
Definition
PTR_EXCEPTION_SPEC.cpp:29
Generated by
1.9.8