BloombergLP::bslstl::swap

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);
» more...

Swap the functors wrapped by a and b.

template<class FUNCTOR>
void
swap(
    HashTable_HashWrapper<FUNCTOR>& a,
    HashTable_HashWrapper<FUNCTOR>& b);
» more...

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);
» more...

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);
» more...

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);
» more...

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);
» more...

Parameters

NameDescription
lhsfirst comparator wrapper to swap
rhssecond comparator wrapper to swap
afirst hash wrapper to swap
bsecond hash wrapper to swap
xfirst hash table to swap
ysecond hash table to swap