Exchange the nodes of the specified a and b objects.
Synopsis
Declared in <bslstl_bidirectionalnodepool.h>
template<
class VALUE,
class ALLOCATOR>
void
swap(
BidirectionalNodePool<VALUE, ALLOCATOR>& a,
BidirectionalNodePool<VALUE, ALLOCATOR>& b);
Description
Efficiently exchange the nodes of the specified a object with those of the specified b object. This method provides the no‐throw exception‐safety guarantee. The behavior is undefined unless a.allocator() == b.allocator().
Parameters
Name |
Description |
a |
first node‐pool participating in the swap |
b |
second node‐pool participating in the swap |
Created with MrDocs