Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
23.vector.bool.stdcxx-235.cpp
Go to the documentation of this file.
1
29#include <cassert>
30#include <vector>
31
32int main ()
33{
34 std::vector<bool> v;
35
36 typedef std::vector<bool>::const_iterator const_iterator;
37 typedef std::vector<bool>::iterator iterator;
38
39 const const_iterator cbegin = v.begin ();
40 const iterator begin = v.begin ();
41
42 assert (cbegin == begin);
43 assert (begin == cbegin);
44
45 assert (!(cbegin != begin));
46 assert (!(begin != cbegin));
47
48 assert (cbegin <= begin);
49 assert (begin <= cbegin);
50
51 assert (cbegin >= begin);
52 assert (begin >= cbegin);
53
54 assert (!(cbegin < begin));
55 assert (!(begin < cbegin));
56
57 assert (!(cbegin > begin));
58 assert (!(begin > cbegin));
59}
#define v
Definition 17.names.cpp:138
#define assert(expr)
Definition _cassert.h:40