PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://hadesmem.googlecode.com/
C++ Header | 33 lines | 22 code | 5 blank | 6 comment | 0 complexity | f7ac13f7c0f42a11f92baa7ac9ca6435 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_1817)
 8#define FUSION_CLEAR_10022005_1817
 9
10#include <boost/mpl/clear.hpp>
11#include <boost/fusion/support/tag_of.hpp>
12#include <boost/fusion/mpl/detail/clear.hpp>
13
14namespace boost { namespace mpl
15{
16    template <typename Tag>
17    struct clear_impl;
18
19    template <>
20    struct clear_impl<fusion::fusion_sequence_tag>
21    {
22        template <typename Sequence>
23        struct apply
24        {            
25            typedef typename 
26                fusion::detail::clear<typename fusion::detail::tag_of<Sequence>::type>::type 
27            type;
28        };
29    };
30}}
31
32#endif
33