Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
23.vector.stdcxx-972.cpp
Go to the documentation of this file.
1
29#include <vector> // for vector
30
31
32void test ()
33{
34 typedef std::vector<bool> Vector;
35 typedef Vector::iterator Iter;
36 typedef Vector::const_iterator CIter;
37
38 Vector vec (10);
39
40 Iter it = vec.begin ();
41 CIter cit = vec.begin ();
42
43 5 + it;
44 5 + cit;
45}
46
47
48int main ()
49{
50 test ();
51 // compile-time only test
52 return 0;
53}
std::vector< UserClass, std::allocator< UserClass > > Vector
void test()
int main()
std::ostream_iterator< int, char, std::char_traits< char > > Iter
Definition alg7.cpp:64