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

/Src/Dependencies/Boost/boost/fusion/algorithm/transformation/clear.hpp

http://hadesmem.googlecode.com/
C++ Header | 32 lines | 21 code | 5 blank | 6 comment | 0 complexity | 699519858abfb7d818e60ee7abcb5eab 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_09172005_1127)
 8#define FUSION_CLEAR_09172005_1127
 9
10#include <boost/fusion/container/vector/vector10.hpp>
11
12namespace boost { namespace fusion
13{
14    namespace result_of
15    {
16        template <typename Sequence>
17        struct clear
18        {
19            typedef vector0<> type;
20        };
21    }
22
23    template <typename Sequence>
24    inline typename result_of::clear<Sequence const>::type
25    clear(Sequence const& /*seq*/)
26    {
27        return vector0<>();
28    }
29}}
30
31#endif
32