44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
// Forward declaration of the circular buffer and its adaptor.
|
|
|
|
// 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.
|
|
|
|
#if !defined(ACTIV_BOOST_CIRCULAR_BUFFER_FWD_HPP)
|
|
#define ACTIV_BOOST_CIRCULAR_BUFFER_FWD_HPP
|
|
|
|
#if defined(_MSC_VER)
|
|
#pragma once
|
|
#endif
|
|
|
|
#include <ActivBoost/config.hpp>
|
|
#if !defined(ACTIV_BOOST_NO_STD_ALLOCATOR)
|
|
#include <memory>
|
|
#else
|
|
#include <vector>
|
|
#endif
|
|
|
|
namespace Boost {
|
|
|
|
#if !defined(ACTIV_BOOST_NO_STD_ALLOCATOR)
|
|
#define ACTIV_BOOST_CB_DEFAULT_ALLOCATOR(T) std::allocator<T>
|
|
#else
|
|
#define ACTIV_BOOST_CB_DEFAULT_ALLOCATOR(T) ACTIV_BOOST_DEDUCED_TYPENAME std::vector<T>::allocator_type
|
|
#endif
|
|
|
|
template <class T, class Alloc = ACTIV_BOOST_CB_DEFAULT_ALLOCATOR(T)>
|
|
class circular_buffer;
|
|
|
|
template <class T, class Alloc = ACTIV_BOOST_CB_DEFAULT_ALLOCATOR(T)>
|
|
class circular_buffer_space_optimized;
|
|
|
|
#undef ACTIV_BOOST_CB_DEFAULT_ALLOCATOR
|
|
|
|
} // namespace Boost
|
|
|
|
#endif // #if !defined(ACTIV_BOOST_CIRCULAR_BUFFER_FWD_HPP)
|