| 1 | /*============================================================================= |
|---|---|
| 2 | Copyright (c) 2001-2011 Joel de Guzman |
| 3 | |
| 4 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 5 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 6 | ==============================================================================*/ |
| 7 | #if !defined(FUSION_CLEAR_10022005_1442) |
| 8 | #define FUSION_CLEAR_10022005_1442 |
| 9 | |
| 10 | #include <boost/fusion/support/config.hpp> |
| 11 | #include <boost/fusion/container/vector/vector_fwd.hpp> |
| 12 | #include <boost/fusion/container/list/list_fwd.hpp> |
| 13 | #include <boost/fusion/container/map/map_fwd.hpp> |
| 14 | #include <boost/fusion/container/set/set_fwd.hpp> |
| 15 | #include <boost/fusion/container/deque/deque_fwd.hpp> |
| 16 | |
| 17 | namespace boost { namespace fusion |
| 18 | { |
| 19 | struct cons_tag; |
| 20 | struct map_tag; |
| 21 | struct set_tag; |
| 22 | struct vector_tag; |
| 23 | struct deque_tag; |
| 24 | |
| 25 | namespace detail |
| 26 | { |
| 27 | template <typename Tag> |
| 28 | struct clear; |
| 29 | |
| 30 | template <> |
| 31 | struct clear<cons_tag> : mpl::identity<list<> > {}; |
| 32 | |
| 33 | template <> |
| 34 | struct clear<map_tag> : mpl::identity<map<> > {}; |
| 35 | |
| 36 | template <> |
| 37 | struct clear<set_tag> : mpl::identity<set<> > {}; |
| 38 | |
| 39 | template <> |
| 40 | struct clear<vector_tag> : mpl::identity<vector<> > {}; |
| 41 | |
| 42 | template <> |
| 43 | struct clear<deque_tag> : mpl::identity<deque<> > {}; |
| 44 | } |
| 45 | }} |
| 46 | |
| 47 | #endif |
| 48 |
