mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-03 23:04:33 +02:00
Simpler implementation.
[SVN r20756]
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
#ifndef BOOST_MPL_INDEX_IF_HPP_INCLUDED
|
#ifndef BOOST_MPL_INDEX_IF_HPP_INCLUDED
|
||||||
#define BOOST_MPL_INDEX_IF_HPP_INCLUDED
|
#define BOOST_MPL_INDEX_IF_HPP_INCLUDED
|
||||||
|
|
||||||
#include "boost/mpl/aux_/config/workaround.hpp"
|
|
||||||
#include "boost/mpl/aux_/find_if_pred.hpp"
|
#include "boost/mpl/aux_/find_if_pred.hpp"
|
||||||
#include "boost/mpl/begin_end.hpp"
|
#include "boost/mpl/begin_end.hpp"
|
||||||
#include "boost/mpl/if.hpp"
|
#include "boost/mpl/if.hpp"
|
||||||
@@ -34,19 +33,6 @@
|
|||||||
namespace boost {
|
namespace boost {
|
||||||
namespace mpl {
|
namespace mpl {
|
||||||
|
|
||||||
namespace aux {
|
|
||||||
|
|
||||||
struct index_if_op
|
|
||||||
{
|
|
||||||
template < typename Index, typename Iterator >
|
|
||||||
struct apply
|
|
||||||
: next< Index >
|
|
||||||
{
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace aux
|
|
||||||
|
|
||||||
BOOST_MPL_AUX_AGLORITHM_NAMESPACE_BEGIN
|
BOOST_MPL_AUX_AGLORITHM_NAMESPACE_BEGIN
|
||||||
|
|
||||||
template<
|
template<
|
||||||
@@ -62,7 +48,7 @@ private:
|
|||||||
typedef typename iter_fold_if<
|
typedef typename iter_fold_if<
|
||||||
Sequence
|
Sequence
|
||||||
, int_<0>
|
, int_<0>
|
||||||
, protect< aux::index_if_op >
|
, protect< next<> >
|
||||||
, protect< aux::find_if_pred<pred_> >
|
, protect< aux::find_if_pred<pred_> >
|
||||||
>::type result_;
|
>::type result_;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user