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
tests
regress
24.operations.stdcxx-234.cpp
Go to the documentation of this file.
1
30
#include <iterator>
31
32
struct
X
: std::iterator<std::random_access_iterator_tag, int> { };
33
34
namespace
std
{
35
36
// specialize the std::distance() function template of a user-defined
37
// iterator type to verify that the signature of the primary template
38
// is the same as the one of the specialization
39
template
<> std::iterator_traits<X>::difference_type
40
distance<X> (
X
,
X
) {
return
0; }
41
42
}
// namespace std
43
44
int
main
()
45
{
46
return
int (std::distance (
X
(),
X
()));
47
}
main
int main()
Definition
24.operations.stdcxx-234.cpp:44
std
Definition
json.h:5363
X
Definition
DUMMY_DEFAULT_ARG.cpp:35
Generated by
1.9.8