Warning, file /include/boost/circular_buffer.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #if !defined(BOOST_CIRCULAR_BUFFER_HPP)
0016 #define BOOST_CIRCULAR_BUFFER_HPP
0017
0018 #if defined(_MSC_VER)
0019 #pragma once
0020 #endif
0021
0022 #include <boost/circular_buffer_fwd.hpp>
0023 #include <boost/config/workaround.hpp>
0024 #include <boost/static_assert.hpp>
0025
0026
0027 #if !defined(BOOST_CB_ENABLE_DEBUG)
0028 #define BOOST_CB_ENABLE_DEBUG 0
0029 #endif
0030
0031
0032 #if BOOST_CB_ENABLE_DEBUG
0033 #include <boost/assert.hpp>
0034 #define BOOST_CB_ASSERT(Expr) BOOST_ASSERT(Expr)
0035 #else
0036 #define BOOST_CB_ASSERT(Expr) ((void)0)
0037 #endif
0038
0039
0040 #if BOOST_WORKAROUND(BOOST_BORLANDC, <= 0x0550) || BOOST_WORKAROUND(__MWERKS__, <= 0x2407)
0041 #define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) ((void)0)
0042 #else
0043 #include <iterator>
0044 #include <boost/type_traits/is_convertible.hpp>
0045 #define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) \
0046 BOOST_STATIC_ASSERT((is_convertible<typename std::iterator_traits<Iterator>::value_type, Type>::value))
0047 #endif
0048
0049
0050 #if defined(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS)
0051 #define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS BOOST_STATIC_ASSERT(false);
0052 #else
0053 #define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS ((void)0);
0054 #endif
0055
0056 #include <boost/circular_buffer/debug.hpp>
0057 #include <boost/circular_buffer/details.hpp>
0058 #include <boost/circular_buffer/base.hpp>
0059 #include <boost/circular_buffer/space_optimized.hpp>
0060
0061 #undef BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS
0062 #undef BOOST_CB_IS_CONVERTIBLE
0063 #undef BOOST_CB_ASSERT
0064
0065 #endif