Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2016. The current version is 1.89.0.
boost::swap — Swap the contents of two circular_buffers.
// In header: <boost/circular_buffer/base.hpp> template<typename T, typename Alloc> void swap(circular_buffer< T, Alloc > & lhs, circular_buffer< T, Alloc > & rhs);
Complexity. Constant (in the size of the s). circular_buffer
Iterator Invalidation. Invalidates all iterators of both s. (On the other hand the iterators still point to the same elements but within another container. If you want to rely on this feature you have to turn the Debug Support off otherwise an assertion will report an error if such invalidated iterator is used.) circular_buffer
See Also:
swap(circular_buffer<T, Alloc>&)
Parameters: |
|
||||
Postconditions: |
|
||||
Throws: |
Nothing. |