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.cons.stdcxx-294.cpp
Go to the documentation of this file.
1
29
#include <
assert.h
>
30
#include <vector>
31
32
int
main
()
33
{
34
static
const
int
a
[] = { 1, 2, 3, 4, 5 };
35
std::vector<int>
v
(
a
,
a
+
sizeof
a
/
sizeof
*
a
);
36
37
v
.insert (
v
.begin () + 2, 2, -1);
38
39
static
const
int
b
[] = { 1, 2, -1, -1, 3, 4, 5 };
40
41
const
int
pass
=
v
== std::vector<int>(
b
,
b
+
sizeof
b
/
sizeof
*
b
);
42
43
assert
(
pass
);
44
45
return
1 -
pass
;
46
}
v
#define v
Definition
17.names.cpp:138
a
#define a
Definition
17.names.cpp:109
b
#define b
Definition
17.names.cpp:110
main
int main()
Definition
23.vector.cons.stdcxx-294.cpp:32
pass
bool pass
Definition
26.valarray.transcend.stdcxx-315.cpp:41
assert
#define assert(expr)
Definition
_cassert.h:40
assert.h
Generated by
1.9.8