Namespaces
Variants
Actions

std::basic_stringbuf<CharT,Traits,Allocator>::swap

From cppreference.com
< cpp‎ | io‎ | basic stringbuf
 
 
 
 
void swap( basic_stringbuf& rhs );
(since C++11)
(until C++20)
void swap( basic_stringbuf& rhs ) noexcept(/* see below */);
(since C++20)

Swaps the state and the contents of *this and rhs.

The behavior is undefined if Allocator does not propagate on swap and the allocators of *this and other are unequal.

(since C++11)

Contents