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 to view this page for the latest version.
PrevUpHomeNext

Boost.Circular_buffer C++ Reference

Header <boost/circular_buffer.hpp>
Header <boost/circular_buffer/base.hpp>
Header <boost/circular_buffer/debug.hpp>
Header <boost/circular_buffer/details.hpp>
Header <boost/circular_buffer/space_optimized.hpp>

BOOST_CB_ENABLE_DEBUG
BOOST_CB_ASSERT(Expr)
BOOST_CB_IS_CONVERTIBLE(Iterator, Type)
BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS
namespace boost {
  template<typename T, typename Alloc> class circular_buffer;
  template<typename T, typename Alloc> 
    bool operator==(const circular_buffer< T, Alloc > &, 
                    const circular_buffer< T, Alloc > &);
  template<typename T, typename Alloc> 
    bool operator<(const circular_buffer< T, Alloc > &, 
                   const circular_buffer< T, Alloc > &);
  template<typename T, typename Alloc> 
    bool operator!=(const circular_buffer< T, Alloc > &, 
                    const circular_buffer< T, Alloc > &);
  template<typename T, typename Alloc> 
    bool operator>(const circular_buffer< T, Alloc > &, 
                   const circular_buffer< T, Alloc > &);
  template<typename T, typename Alloc> 
    bool operator<=(const circular_buffer< T, Alloc > &, 
                    const circular_buffer< T, Alloc > &);
  template<typename T, typename Alloc> 
    bool operator>=(const circular_buffer< T, Alloc > &, 
                    const circular_buffer< T, Alloc > &);
  template<typename T, typename Alloc> 
    void swap(circular_buffer< T, Alloc > &, circular_buffer< T, Alloc > &);
}
namespace boost {
  template<typename T, typename Alloc> class circular_buffer_space_optimized;

  // Test two space optimized circular buffers for equality. 
  template<typename T, typename Alloc> 
    bool operator==(const circular_buffer_space_optimized< T, Alloc > & lhs, 
                    const circular_buffer_space_optimized< T, Alloc > & rhs);

  // Lexicographical comparison. 
  template<typename T, typename Alloc> 
    bool operator<(const circular_buffer_space_optimized< T, Alloc > & lhs, 
                   const circular_buffer_space_optimized< T, Alloc > & rhs);

  // Test two space optimized circular buffers for non-equality. 
  template<typename T, typename Alloc> 
    bool operator!=(const circular_buffer_space_optimized< T, Alloc > & lhs, 
                    const circular_buffer_space_optimized< T, Alloc > & rhs);

  // Lexicographical comparison. 
  template<typename T, typename Alloc> 
    bool operator>(const circular_buffer_space_optimized< T, Alloc > & lhs, 
                   const circular_buffer_space_optimized< T, Alloc > & rhs);

  // Lexicographical comparison. 
  template<typename T, typename Alloc> 
    bool operator<=(const circular_buffer_space_optimized< T, Alloc > & lhs, 
                    const circular_buffer_space_optimized< T, Alloc > & rhs);

  // Lexicographical comparison. 
  template<typename T, typename Alloc> 
    bool operator>=(const circular_buffer_space_optimized< T, Alloc > & lhs, 
                    const circular_buffer_space_optimized< T, Alloc > & rhs);

  // Swap the contents of two space optimized circular buffers. 
  template<typename T, typename Alloc> 
    void swap(circular_buffer_space_optimized< T, Alloc > & lhs, 
              circular_buffer_space_optimized< T, Alloc > & rhs);
}

PrevUpHomeNext