Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template operator==

boost::container::operator== — Checks if contents of two static_vectors are equal.

Synopsis

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


template<typename V, std::size_t C1, std::size_t C2, typename O1, typename O2> 
  bool operator==(static_vector< V, C1, O1 > const & x, 
                  static_vector< V, C2, O2 > const & y);

Description

Complexity. Linear O(N).

Parameters:

x

The first static_vector.

y

The second static_vector.

Returns:

true if containers have the same size and elements in both containers are equal.


PrevUpHomeNext