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
27.stringbuf.xsputn.stdcxx-515.cpp
Go to the documentation of this file.
1
27
#include <sstream>
// for stringstream
28
#include <string>
// for string
29
#include <cassert>
// for assert()
30
#include <cstddef>
// for size_t
31
32
int
main
()
33
{
34
for
(std::size_t
i
= 1;
i
<= 1024; ++
i
) {
35
std::stringstream
strm
;
36
std::string
s
(
i
,
'a'
);
37
strm
<<
s
;
38
strm
.seekp (-1, std::ios::cur);
39
s
.erase (0, 1);
40
strm
<<
"bc"
;
41
s
.append (
"bc"
);
42
assert
(
strm
.str () ==
s
);
43
}
44
45
return
0;
46
}
i
#define i
Definition
17.names.cpp:126
s
#define s
Definition
rw_alg_test.h:221
strm
#define strm
Definition
17.names.cpp:549
main
int main()
Definition
27.stringbuf.xsputn.stdcxx-515.cpp:32
assert
#define assert(expr)
Definition
_cassert.h:40
Generated by
1.9.8