stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Pevtsov <ant...@moscow.vdiweb.com>
Subject test for 21.string.swap
Date Tue, 21 Mar 2006 15:23:14 GMT
The attached file contains the test for lib.string.swap.
It seems to be useful to exercise that the swap takes constant time, but
I am not sure that we have an apropriate mechanism for this check,
especially for char and char_traits.
Also, this test become intresting than different allocators are used. If
they are the same the std::swap results in the trivial pointers swap.

With best wishes,
Anton Pevtsov


Mime
View raw message