forked from boostorg/fusion
loop unrolling for compile time perf in any, all and none
[SVN r37820]
This commit is contained in:
@ -1,16 +1,14 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2006 Joel de Guzman
|
||||
Copyright (c) 2007 Dan Marsden
|
||||
|
||||
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_NONE_07062005_1128)
|
||||
#define FUSION_NONE_07062005_1128
|
||||
#if !defined(BOOST_FUSION_NONE_07062005_1128)
|
||||
#define BOOST_FUSION_NONE_07062005_1128
|
||||
|
||||
#include <boost/fusion/sequence/intrinsic/begin.hpp>
|
||||
#include <boost/fusion/sequence/intrinsic/end.hpp>
|
||||
#include <boost/fusion/iterator/equal_to.hpp>
|
||||
#include <boost/fusion/algorithm/query/detail/none.hpp>
|
||||
#include <boost/fusion/algorithm/query/any.hpp>
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
@ -27,13 +25,7 @@ namespace boost { namespace fusion
|
||||
inline bool
|
||||
none(Sequence const& seq, F f)
|
||||
{
|
||||
return detail::none(
|
||||
fusion::begin(seq)
|
||||
, fusion::end(seq)
|
||||
, f
|
||||
, result_of::equal_to<
|
||||
typename result_of::begin<Sequence>::type
|
||||
, typename result_of::end<Sequence>::type>());
|
||||
return !fusion::any(seq, f);
|
||||
}
|
||||
}}
|
||||
|
||||
|
Reference in New Issue
Block a user