// 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 */ #if !defined(ACTIV_BOOST_CIRCULAR_BUFFER_HPP) #define ACTIV_BOOST_CIRCULAR_BUFFER_HPP #if defined(_MSC_VER) #pragma once #endif #include #include #include /*! Debug support control. */ #if !defined(ACTIV_BOOST_CB_ENABLE_DEBUG) #define ACTIV_BOOST_CB_ENABLE_DEBUG 0 #endif /*! INTERNAL ONLY */ #if ACTIV_BOOST_CB_ENABLE_DEBUG #include #define ACTIV_BOOST_CB_ASSERT(Expr) ACTIV_BOOST_ASSERT(Expr) #else #define ACTIV_BOOST_CB_ASSERT(Expr) ((void)0) #endif /*! INTERNAL ONLY */ #if ACTIV_BOOST_WORKAROUND(ACTIV_BOOST_BORLANDC, <= 0x0550) || ACTIV_BOOST_WORKAROUND(__MWERKS__, <= 0x2407) #define ACTIV_BOOST_CB_IS_CONVERTIBLE(Iterator, Type) ((void)0) #else #include #include #define ACTIV_BOOST_CB_IS_CONVERTIBLE(Iterator, Type) \ ACTIV_BOOST_STATIC_ASSERT((is_convertible::value_type, Type>::value)) #endif /*! INTERNAL ONLY */ #if defined(ACTIV_BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS) #define ACTIV_BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS ACTIV_BOOST_STATIC_ASSERT(false); #else #define ACTIV_BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS ((void)0); #endif #include #include #include #include #undef ACTIV_BOOST_CB_ASSERT_TEMPLATED_ITERATOR_CONSTRUCTORS #undef ACTIV_BOOST_CB_IS_CONVERTIBLE #undef ACTIV_BOOST_CB_ASSERT #endif // #if !defined(ACTIV_BOOST_CIRCULAR_BUFFER_HPP)