Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
25.random.shuffle.stdcxx-126.cpp
Go to the documentation of this file.
1
29#include <algorithm>
30#include <iterator>
31
32
33template <class IntT>
35{
36 DiffConvertible (IntT) { }
37 operator IntT () const { return IntT (); }
38
39private:
40 template <class T> DiffConvertible (T); // not defined
41};
42
43
44template <class IntT>
45struct Generator
46{
47 DiffConvertible<IntT> operator() (IntT n) {
49 }
50
51private:
52 template <class T> void operator() (T); // not defined
53};
54
55
56// not defined
57template <class IntT, class T> void operator+ (T, DiffConvertible<IntT>);
58template <class IntT, class T> void operator+ (T, DiffConvertible<IntT>);
59
60int main ()
61{
63
64 int a = 0;
65
66 std::random_shuffle<int*>(&a, &a, gen);
67
68 return 0;
69}
#define T
Definition 17.names.cpp:163
#define gen
Definition 17.names.cpp:474
#define a
Definition 17.names.cpp:109
#define n
Definition 17.names.cpp:130
void operator+(T, DiffConvertible< IntT >)