31class Alloc :
public std::allocator <char>
48 const char src [] =
"source string";
49 const char dst [] =
"destination string";
51 typedef std::list <char, Alloc> List;
58 List src_lst (src, src +
sizeof (src) - 1,
a1);
59 List dst_lst (dst, dst +
sizeof (dst) - 1,
a2);
61 src_lst.swap (dst_lst);
63 assert (std::string (src_lst.begin (), src_lst.end ()) == dst);
64 assert (std::string (dst_lst.begin (), dst_lst.end ()) == src);
bool operator!=(Alloc, Alloc)
bool operator==(Alloc, Alloc)