Sha256: 89c163f9d4884866a14f6f3955a4c5b61b5b36edf44c6b8c96b4076e23bba54f

Contents?: true

Size: 1.9 KB

Versions: 13

Compression:

Stored size: 1.9 KB

Contents

// Circular buffer library header file.

// Copyright (c) 2003-2008 Jan Gaspar

// Use, modification, and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

//  See www.boost.org/libs/circular_buffer for documentation.

/*! @file
Includes <boost/circular_buffer/base.hpp>
*/

#if !defined(BOOST_CIRCULAR_BUFFER_HPP)
#define BOOST_CIRCULAR_BUFFER_HPP

#if defined(_MSC_VER)
    #pragma once
#endif

#include <boost/circular_buffer_fwd.hpp>
#include <boost/config/workaround.hpp>
#include <boost/static_assert.hpp>

/*! Debug support control. */
#if !defined(BOOST_CB_ENABLE_DEBUG)
    #define BOOST_CB_ENABLE_DEBUG 0
#endif

/*! INTERNAL ONLY */
#if BOOST_CB_ENABLE_DEBUG
    #include <boost/assert.hpp>
    #define BOOST_CB_ASSERT(Expr) BOOST_ASSERT(Expr)
#else
    #define BOOST_CB_ASSERT(Expr) ((void)0)
#endif

/*! INTERNAL ONLY */
#if BOOST_WORKAROUND(BOOST_BORLANDC, <= 0x0550) || BOOST_WORKAROUND(__MWERKS__, <= 0x2407)
    #define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) ((void)0)
#else
    #include <iterator>
    #include <boost/type_traits/is_convertible.hpp>
    #define BOOST_CB_IS_CONVERTIBLE(Iterator, Type) \
        BOOST_STATIC_ASSERT((is_convertible<typename std::iterator_traits<Iterator>::value_type, Type>::value))
#endif

/*! INTERNAL ONLY */
#if defined(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS)
    #define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS BOOST_STATIC_ASSERT(false);
#else
    #define BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS ((void)0);
#endif

#include <boost/circular_buffer/debug.hpp>
#include <boost/circular_buffer/details.hpp>
#include <boost/circular_buffer/base.hpp>
#include <boost/circular_buffer/space_optimized.hpp>

#undef BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS
#undef BOOST_CB_IS_CONVERTIBLE
#undef BOOST_CB_ASSERT

#endif // #if !defined(BOOST_CIRCULAR_BUFFER_HPP)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/circular_buffer.hpp