Files

35 lines
949 B
C++
Raw Permalink Normal View History

2007-10-21 00:52:09 +00:00
/*=============================================================================
2011-09-16 05:30:23 +00:00
Copyright (c) 2001-2011 Joel de Guzman
2007-10-21 00:52:09 +00:00
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#if !defined(FUSION_CLEAR_09172005_1127)
#define FUSION_CLEAR_09172005_1127
2014-01-09 17:58:06 -08:00
#include <boost/fusion/support/config.hpp>
2007-10-21 00:52:09 +00:00
#include <boost/fusion/container/vector/vector10.hpp>
namespace boost { namespace fusion
{
namespace result_of
{
template <typename Sequence>
struct clear
{
2009-06-15 01:54:01 +00:00
typedef vector0<> type;
2007-10-21 00:52:09 +00:00
};
}
template <typename Sequence>
2015-03-03 02:21:02 +09:00
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
2007-10-21 00:52:09 +00:00
inline typename result_of::clear<Sequence const>::type
clear(Sequence const& /*seq*/)
2007-10-21 00:52:09 +00:00
{
2009-06-15 01:54:01 +00:00
return vector0<>();
2007-10-21 00:52:09 +00:00
}
}}
#endif