]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/circular_buffer.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / circular_buffer.hpp
CommitLineData
7c673cae
FG
1// Circular buffer library header file.
2
3// Copyright (c) 2003-2008 Jan Gaspar
4
5// Use, modification, and distribution is subject to the Boost Software
6// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8
9// See www.boost.org/libs/circular_buffer for documentation.
10
92f5a8d4
TL
11/*! @file
12Includes <boost/circular_buffer/base.hpp>
13*/
14
7c673cae
FG
15#if !defined(BOOST_CIRCULAR_BUFFER_HPP)
16#define BOOST_CIRCULAR_BUFFER_HPP
17
18#if defined(_MSC_VER)
19 #pragma once
20#endif
21
22#include <boost/circular_buffer_fwd.hpp>
92f5a8d4 23#include <boost/config/workaround.hpp>
7c673cae
FG
24#include <boost/static_assert.hpp>
25
92f5a8d4 26/*! Debug support control. */
7c673cae
FG
27#if !defined(BOOST_CB_ENABLE_DEBUG)
28 #define BOOST_CB_ENABLE_DEBUG 0
29#endif
30
92f5a8d4 31/*! INTERNAL ONLY */
7c673cae
FG
32#if BOOST_CB_ENABLE_DEBUG
33 #include <boost/assert.hpp>
34 #define BOOST_CB_ASSERT(Expr) BOOST_ASSERT(Expr)
35#else
36 #define BOOST_CB_ASSERT(Expr) ((void)0)
37#endif
38
92f5a8d4 39/*! INTERNAL ONLY */
20effc67 40#if BOOST_WORKAROUND(BOOST_BORLANDC, <= 0x0550) || BOOST_WORKAROUND(__MWERKS__, <= 0x2407)
7c673cae
FG
41 #define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) ((void)0)
42#else
92f5a8d4 43 #include <iterator>
7c673cae
FG
44 #include <boost/type_traits/is_convertible.hpp>
45 #define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) \
92f5a8d4 46 BOOST_STATIC_ASSERT((is_convertible<typename std::iterator_traits<Iterator>::value_type, Type>::value))
7c673cae
FG
47#endif
48
92f5a8d4 49/*! INTERNAL ONLY */
7c673cae
FG
50#if defined(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS)
51 #define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS BOOST_STATIC_ASSERT(false);
52#else
53 #define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS ((void)0);
54#endif
55
56#include <boost/circular_buffer/debug.hpp>
57#include <boost/circular_buffer/details.hpp>
58#include <boost/circular_buffer/base.hpp>
59#include <boost/circular_buffer/space_optimized.hpp>
60
61#undef BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS
62#undef BOOST_CB_IS_CONVERTIBLE
63#undef BOOST_CB_ASSERT
64
65#endif // #if !defined(BOOST_CIRCULAR_BUFFER_HPP)