fix doc example typo
[boost.git] / boost / circular_buffer_fwd.hpp
blob6fdb43e03795ca84c11c118be27a691ed3e2bada
1 // Forward declaration of the circular buffer and its adaptor.
3 // Copyright (c) 2003-2008 Jan Gaspar
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)
9 // See www.boost.org/libs/circular_buffer for documentation.
11 #if !defined(BOOST_CIRCULAR_BUFFER_FWD_HPP)
12 #define BOOST_CIRCULAR_BUFFER_FWD_HPP
14 #if defined(_MSC_VER) && _MSC_VER >= 1200
15 #pragma once
16 #endif
18 #include <boost/config.hpp>
19 #if !defined(BOOST_NO_STD_ALLOCATOR)
20 #include <memory>
21 #else
22 #include <vector>
23 #endif
25 namespace boost {
27 #if !defined(BOOST_NO_STD_ALLOCATOR)
28 #define BOOST_CB_DEFAULT_ALLOCATOR(T) std::allocator<T>
29 #else
30 #define BOOST_CB_DEFAULT_ALLOCATOR(T) BOOST_DEDUCED_TYPENAME std::vector<T>::allocator_type
31 #endif
33 template <class T, class Alloc = BOOST_CB_DEFAULT_ALLOCATOR(T)>
34 class circular_buffer;
36 template <class T, class Alloc = BOOST_CB_DEFAULT_ALLOCATOR(T)>
37 class circular_buffer_space_optimized;
39 #undef BOOST_CB_DEFAULT_ALLOCATOR
41 } // namespace boost
43 #endif // #if !defined(BOOST_CIRCULAR_BUFFER_FWD_HPP)