Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
21.string.insert.stdcxx-632.cpp
Go to the documentation of this file.
1
29#include <cassert>
30#include <string>
31
32int main ()
33{
34 std::string s ("abc");
35
36 s.insert (s.begin (), s.rbegin () + 1, s.rbegin () + 2);
37
38 assert ("babc" == s);
39
40 s = "abc";
41
42 typedef const unsigned char UChar;
43 s.insert (s.begin (), (UChar*)&s [1], (UChar*)&s [2]);
44
45 assert ("babc" == s);
46
47 return 0;
48}
#define s
#define assert(expr)
Definition _cassert.h:40
unsigned char UChar
Definition collate.cpp:122