2 // Copyright 2005-2008 Daniel James.
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #if !defined(BOOST_DETAIL_CONTAINER_FWD_HPP)
7 #define BOOST_DETAIL_CONTAINER_FWD_HPP
9 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
13 #include <boost/config.hpp>
14 #include <boost/detail/workaround.hpp>
16 #if defined(BOOST_DETAIL_NO_CONTAINER_FWD) \
17 || ((defined(__GLIBCPP__) || defined(__GLIBCXX__)) \
18 && (defined(_GLIBCXX_DEBUG) || defined(_GLIBCXX_PARALLEL))) \
19 || BOOST_WORKAROUND(__BORLANDC__, > 0x551) \
20 || BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x842)) \
21 || (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
36 #if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) && \
37 defined(__STL_CONFIG_H)
39 #define BOOST_CONTAINER_FWD_BAD_BITSET
41 #if !defined(__STL_NON_TYPE_TMPL_PARAM_BUG)
42 #define BOOST_CONTAINER_FWD_BAD_DEQUE
47 #if defined(BOOST_CONTAINER_FWD_BAD_DEQUE)
51 #if defined(BOOST_CONTAINER_FWD_BAD_BITSET)
55 #if defined(BOOST_MSVC)
57 #pragma warning(disable:4099) // struct/class mismatch in fwd declarations
62 template <class T> class allocator;
63 template <class charT, class traits, class Allocator> class basic_string;
65 #if BOOST_WORKAROUND(__GNUC__, < 3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
66 template <class charT> struct string_char_traits;
68 template <class charT> struct char_traits;
72 template <class T> struct complex;
74 template <class T> class complex;
78 // gcc 3.4 and greater
81 #if !defined(BOOST_CONTAINER_FWD_BAD_DEQUE)
82 template <class T, class Allocator> class deque;
85 template <class T, class Allocator> class list;
86 template <class T, class Allocator> class vector;
87 template <class Key, class T, class Compare, class Allocator> class map;
88 template <class Key, class T, class Compare, class Allocator>
90 template <class Key, class Compare, class Allocator> class set;
91 template <class Key, class Compare, class Allocator> class multiset;
93 #if !defined(BOOST_CONTAINER_FWD_BAD_BITSET)
94 template <size_t N> class bitset;
96 template <class T1, class T2> struct pair;
99 #if defined(BOOST_MSVC)