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
23.vector.bool.stdcxx-235.cpp
Go to the documentation of this file.
1
29
#include <cassert>
30
#include <vector>
31
32
int
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
}
v
#define v
Definition
17.names.cpp:138
main
int main()
Definition
23.vector.bool.stdcxx-235.cpp:32
assert
#define assert(expr)
Definition
_cassert.h:40
Generated by
1.9.8