PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/fusion/mpl/detail/clear.hpp

http://hadesmem.googlecode.com/
C++ Header | 46 lines | 31 code | 9 blank | 6 comment | 0 complexity | 826aff6c61b79075ed22c69236c7e7a9 MD5 | raw file
 1/*=============================================================================
 2    Copyright (c) 2001-2006 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/container/vector/vector_fwd.hpp>
11#include <boost/fusion/container/list/list_fwd.hpp>
12#include <boost/fusion/container/map/map_fwd.hpp>
13#include <boost/fusion/container/set/set_fwd.hpp>
14#include <boost/fusion/container/deque/deque_fwd.hpp>
15
16namespace boost { namespace fusion
17{
18    struct cons_tag;
19    struct map_tag;
20    struct set_tag;
21    struct vector_tag;
22    struct deque_tag;
23
24    namespace detail
25    {
26        template <typename Tag>
27        struct clear;
28
29        template <>
30        struct clear<cons_tag> : mpl::identity<list<> > {};
31
32        template <>
33        struct clear<map_tag> : mpl::identity<map<> > {};
34
35        template <>
36        struct clear<set_tag> : mpl::identity<set<> > {};
37
38        template <>
39        struct clear<vector_tag> : mpl::identity<vector<> > {};
40
41        template <>
42        struct clear<deque_tag> : mpl::identity<deque<> > {};
43    }
44}}
45
46#endif