ReactOS
0.4.16-dev-927-g467dec4
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
finsert_test.cpp
Go to the documentation of this file.
1
#include <vector>
2
#include <algorithm>
3
#include <deque>
4
5
#include "
cppunit/cppunit_proxy.h
"
6
7
#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
8
using namespace
std
;
9
#endif
10
11
//
12
// TestCase class
13
//
14
class
FinsertTest
:
public
CPPUNIT_NS::TestCase
15
{
16
CPPUNIT_TEST_SUITE
(
FinsertTest
);
17
CPPUNIT_TEST
(
finsert1
);
18
CPPUNIT_TEST
(
finsert2
);
19
CPPUNIT_TEST_SUITE_END
();
20
21
protected
:
22
void
finsert1
();
23
void
finsert2
();
24
};
25
26
CPPUNIT_TEST_SUITE_REGISTRATION
(
FinsertTest
);
27
28
//
29
// tests implementation
30
//
31
void
FinsertTest::finsert1
()
32
{
33
char
const
*
array
[] = {
"laurie"
,
"jennifer"
,
"leisa"
};
34
deque<char const*>
names
;
35
front_insert_iterator<deque<char const*>
> fit(
names
);
36
fit =
copy
(
array
,
array
+ 3,
front_insert_iterator
<deque <char const*> >(
names
));
37
38
CPPUNIT_ASSERT
(
names
[0]==
array
[2]);
39
CPPUNIT_ASSERT
(
names
[1]==
array
[1]);
40
CPPUNIT_ASSERT
(
names
[2]==
array
[0]);
41
42
copy
(
array
,
array
+ 3, fit);
43
CPPUNIT_ASSERT
(
names
[3]==
array
[2]);
44
CPPUNIT_ASSERT
(
names
[4]==
array
[1]);
45
CPPUNIT_ASSERT
(
names
[5]==
array
[0]);
46
}
47
48
void
FinsertTest::finsert2
()
49
{
50
char
const
*
array
[] = {
"laurie"
,
"jennifer"
,
"leisa"
};
51
52
deque<char const*>
names
;
53
copy
(
array
,
array
+ 3,
front_inserter
(
names
));
54
55
CPPUNIT_ASSERT
(
names
[0]==
array
[2]);
56
CPPUNIT_ASSERT
(
names
[1]==
array
[1]);
57
CPPUNIT_ASSERT
(
names
[2]==
array
[0]);
58
}
front_inserter
front_insert_iterator< _Container > _STLP_CALL front_inserter(_Container &__x)
Definition:
_iterator.h:216
copy
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
Definition:
copy.c:51
FinsertTest
Definition:
finsert_test.cpp:15
FinsertTest::CPPUNIT_TEST
CPPUNIT_TEST(finsert1)
FinsertTest::finsert2
void finsert2()
Definition:
finsert_test.cpp:48
FinsertTest::CPPUNIT_TEST_SUITE_END
CPPUNIT_TEST_SUITE_END()
FinsertTest::finsert1
void finsert1()
Definition:
finsert_test.cpp:31
FinsertTest::CPPUNIT_TEST
CPPUNIT_TEST(finsert2)
FinsertTest::CPPUNIT_TEST_SUITE
CPPUNIT_TEST_SUITE(FinsertTest)
deque
Definition:
_deque.h:404
front_insert_iterator
Definition:
_iterator.h:192
CPPUNIT_TEST_SUITE_REGISTRATION
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
Definition:
cppunit_mini.h:193
CPPUNIT_ASSERT
#define CPPUNIT_ASSERT(X)
Definition:
cppunit_mini.h:200
cppunit_proxy.h
names
GLuint GLuint * names
Definition:
glext.h:11545
std
Definition:
features.h:417
array
Definition:
wbemprox_private.h:130
sdk
lib
3rdparty
stlport
test
unit
finsert_test.cpp
Generated on Sun Mar 30 2025 06:13:51 for ReactOS by
1.9.6