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 a snapshot of the master branch, built from commit be8c2f0457.
PrevUpHomeNext

Function template operator==

boost::operator== — Compare two circular_buffers element-by-element to determine if they are equal.

Synopsis

// In header: <boost/circular_buffer/base.hpp>


template<typename T, typename Alloc> 
  bool operator==(const circular_buffer< T, Alloc > & lhs, 
                  const circular_buffer< T, Alloc > & rhs);

Description

Complexity. Linear (in the size of the circular_buffers).

Iterator Invalidation. Does not invalidate any iterators.

Parameters:

lhs

The circular_buffer to compare.

rhs

The circular_buffer to compare.

Returns:

lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin())

Throws:

Nothing.

PrevUpHomeNext