libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ swap() [1/11]

template<typename _CharT, typename _Traits, typename _Alloc, template< typename, typename, typename > class _Base>
void __gnu_cxx::swap ( __versa_string< _CharT, _Traits, _Alloc, _Base > & __lhs,
__versa_string< _CharT, _Traits, _Alloc, _Base > & __rhs )
inline

Swap contents of two strings.

Parameters
__lhsFirst string.
__rhsSecond string.

Exchanges the contents of __lhs and __rhs in constant time.

Definition at line 2589 of file vstring.h.

2591 { __lhs.swap(__rhs); }
void swap(__versa_string &__s) noexcept
Swap contents with another string.
Definition vstring.h:1642

References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::swap().

Here is the call graph for this function: