]> git.lyx.org Git - lyx.git/blob - boost/boost/detail/container_fwd.hpp
Also display the info about BibTeX databases in the TeX info panel.
[lyx.git] / boost / boost / detail / container_fwd.hpp
1
2 // Copyright 2005-2011 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)
5
6 // Note: if you change this include guard, you also need to change
7 // container_fwd_compile_fail.cpp
8 #if !defined(BOOST_DETAIL_CONTAINER_FWD_HPP)
9 #define BOOST_DETAIL_CONTAINER_FWD_HPP
10
11 #if defined(_MSC_VER) && (_MSC_VER >= 1020) && \
12     !defined(BOOST_DETAIL_TEST_CONFIG_ONLY)
13 # pragma once
14 #endif
15
16 #include <boost/config.hpp>
17 #include <boost/detail/workaround.hpp>
18
19 ////////////////////////////////////////////////////////////////////////////////
20 //                                                                            //
21 // Define BOOST_DETAIL_NO_CONTAINER_FWD if you don't want this header to      //
22 // forward declare standard containers.                                       //
23 //                                                                            //
24 ////////////////////////////////////////////////////////////////////////////////
25
26 #if !defined(BOOST_DETAIL_NO_CONTAINER_FWD)
27 #  if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
28      // STLport
29 #    define BOOST_DETAIL_NO_CONTAINER_FWD
30 #  elif defined(__LIBCOMO__)
31      // Comeau STL:
32 #    define BOOST_DETAIL_NO_CONTAINER_FWD
33 #  elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
34      // Rogue Wave library:
35 #    define BOOST_DETAIL_NO_CONTAINER_FWD
36 #  elif defined(_LIBCPP_VERSION)
37      // libc++
38 #    define BOOST_DETAIL_NO_CONTAINER_FWD
39 #  elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
40      // GNU libstdc++ 3
41 #    if defined(_GLIBCXX_DEBUG) \
42         || defined(_GLIBCXX_PARALLEL) \
43         || defined(_GLIBCXX_PROFILE)
44 #      define BOOST_DETAIL_NO_CONTAINER_FWD
45 #    endif
46 #  elif defined(__STL_CONFIG_H)
47      // generic SGI STL
48      //
49      // Forward declaration seems to be okay, but it has a couple of odd
50      // implementations.
51 #    define BOOST_CONTAINER_FWD_BAD_BITSET
52 #    if !defined(__STL_NON_TYPE_TMPL_PARAM_BUG)
53 #      define BOOST_CONTAINER_FWD_BAD_DEQUE
54 #     endif
55 #  elif defined(__MSL_CPP__)
56      // MSL standard lib:
57 #    define BOOST_DETAIL_NO_CONTAINER_FWD
58 #  elif defined(__IBMCPP__)
59      // The default VACPP std lib, forward declaration seems to be fine.
60 #  elif defined(MSIPL_COMPILE_H)
61      // Modena C++ standard library
62 #    define BOOST_DETAIL_NO_CONTAINER_FWD
63 #  elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
64      // Dinkumware Library (this has to appear after any possible replacement
65      // libraries)
66      //
67      // Works fine.
68 #  else
69 #    define BOOST_DETAIL_NO_CONTAINER_FWD
70 #  endif
71 #endif
72
73 // BOOST_DETAIL_TEST_* macros are for testing only
74 // and shouldn't be relied upon. But you can use
75 // BOOST_DETAIL_NO_CONTAINER_FWD to prevent forward
76 // declaration of containers.
77
78 #if !defined(BOOST_DETAIL_TEST_CONFIG_ONLY)
79
80 #if defined(BOOST_DETAIL_NO_CONTAINER_FWD) && \
81     !defined(BOOST_DETAIL_TEST_FORCE_CONTAINER_FWD)
82
83 #include <deque>
84 #include <list>
85 #include <vector>
86 #include <map>
87 #include <set>
88 #include <bitset>
89 #include <string>
90 #include <complex>
91
92 #else
93
94 #include <cstddef>
95
96 #if defined(BOOST_CONTAINER_FWD_BAD_DEQUE)
97 #include <deque>
98 #endif
99
100 #if defined(BOOST_CONTAINER_FWD_BAD_BITSET)
101 #include <bitset>
102 #endif
103
104 #if defined(BOOST_MSVC)
105 #pragma warning(push)
106 #pragma warning(disable:4099) // struct/class mismatch in fwd declarations
107 #endif
108
109 namespace std
110 {
111     template <class T> class allocator;
112     template <class charT, class traits, class Allocator> class basic_string;
113
114 #if BOOST_WORKAROUND(__GNUC__, < 3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
115     template <class charT> struct string_char_traits;
116 #else
117     template <class charT> struct char_traits;
118 #endif
119
120     #if BOOST_CLANG
121         template <class T> struct complex;
122     #else
123         template <class T> class complex;
124     #endif
125
126 #if !defined(BOOST_CONTAINER_FWD_BAD_DEQUE)
127     template <class T, class Allocator> class deque;
128 #endif
129
130     template <class T, class Allocator> class list;
131     template <class T, class Allocator> class vector;
132     template <class Key, class T, class Compare, class Allocator> class map;
133     template <class Key, class T, class Compare, class Allocator>
134     class multimap;
135     template <class Key, class Compare, class Allocator> class set;
136     template <class Key, class Compare, class Allocator> class multiset;
137
138 #if !defined(BOOST_CONTAINER_FWD_BAD_BITSET)
139     template <size_t N> class bitset;
140 #endif
141     template <class T1, class T2> struct pair;
142 }
143
144 #if defined(BOOST_MSVC)
145 #pragma warning(pop)
146 #endif
147
148 #endif // BOOST_DETAIL_NO_CONTAINER_FWD &&
149        // !defined(BOOST_DETAIL_TEST_FORCE_CONTAINER_FWD)
150
151 #endif // BOOST_DETAIL_TEST_CONFIG_ONLY
152
153 #endif