Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template swap

boost::container::swap — Swaps contents of two static_vectors.

Synopsis

// In header: <boost/container/static_vector.hpp>


template<typename V,  C1,  C2, typename O1, typename O2> 
  void (static_vector< V, C1, O1 > & x, static_vector< V, C2, O2 > & y);

Description

This function calls static_vector::swap().

Complexity. Linear O(N).

Parameters:

x

The first static_vector.

y

The second static_vector.


PrevUpHomeNext