Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template operator<=

boost::operator<= — Compare two circular_buffers element-by-element to determine if the left one is lesser or equal to the right one.

Synopsis

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


template<typename T, typename Alloc> 
   (circular_buffer<  lhs, 
                  circular_buffer<  rhs);

Description

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

Iterator Invalidation. Does not invalidate any iterators.

See Also:

operator<(const circular_buffer<T,Alloc>&, const circular_buffer<T,Alloc>&)

Parameters:

lhs

The circular_buffer to compare.

rhs

The circular_buffer to compare.

Returns:

!(rhs < lhs)

Throws:

Nothing.

PrevUpHomeNext