swap overloads
Synopses
Declared in <bslstl_bidirectionalnodepool.h>
Swap the functors wrapped by lhs and rhs.
template<class FUNCTOR>
void
swap(
HashTable_ComparatorWrapper<FUNCTOR>& lhs,
HashTable_ComparatorWrapper<FUNCTOR>& rhs);
Swap the functors wrapped by a and b.
template<class FUNCTOR>
void
swap(
HashTable_HashWrapper<FUNCTOR>& a,
HashTable_HashWrapper<FUNCTOR>& b);
Exchange the nodes of the specified a and b objects.
template<
class VALUE,
class ALLOCATOR>
void
swap(
BidirectionalNodePool<VALUE, ALLOCATOR>& a,
BidirectionalNodePool<VALUE, ALLOCATOR>& b);
Efficiently exchange the values of the specified a and b objects. This function provides the no‐throw exception‐safety guarantee.
template<
class KEY,
class COMPARATOR>
void
swap(
SetComparator<KEY, COMPARATOR>& a,
SetComparator<KEY, COMPARATOR>& b);
Efficiently exchange the values of the specified a and b objects. This function provides the no‐throw exception‐safety guarantee.
template<
class KEY,
class VALUE,
class COMPARATOR>
void
swap(
MapComparator<KEY, VALUE, COMPARATOR>& a,
MapComparator<KEY, VALUE, COMPARATOR>& b);
Exchange the value and policies of x with those of y.
template<
class KEY_CONFIG,
class HASHER,
class COMPARATOR,
class ALLOCATOR>
void
swap(
HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>& x,
HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>& y);
Parameters
Name |
Description |
lhs |
first comparator wrapper to swap |
rhs |
second comparator wrapper to swap |
a |
first hash wrapper to swap |
b |
second hash wrapper to swap |
x |
first hash table to swap |
y |
second hash table to swap |
Created with MrDocs