Blame boost/mpl/filter_view.hpp

Packit 58578d
Packit 58578d
#ifndef BOOST_MPL_FILTER_VIEW_HPP_INCLUDED
Packit 58578d
#define BOOST_MPL_FILTER_VIEW_HPP_INCLUDED
Packit 58578d
Packit 58578d
// Copyright Aleksey Gurtovoy 2000-2004
Packit 58578d
//
Packit 58578d
// Distributed under the Boost Software License, Version 1.0. 
Packit 58578d
// (See accompanying file LICENSE_1_0.txt or copy at 
Packit 58578d
// http://www.boost.org/LICENSE_1_0.txt)
Packit 58578d
//
Packit 58578d
// See http://www.boost.org/libs/mpl for documentation.
Packit 58578d
Packit 58578d
// $Id$
Packit 58578d
// $Date$
Packit 58578d
// $Revision$
Packit 58578d
Packit 58578d
#include <boost/mpl/begin_end.hpp>
Packit 58578d
#include <boost/mpl/lambda.hpp>
Packit 58578d
#include <boost/mpl/aux_/filter_iter.hpp>
Packit 58578d
#include <boost/mpl/aux_/na_spec.hpp>
Packit 58578d
Packit 58578d
namespace boost { namespace mpl {
Packit 58578d
Packit 58578d
template<
Packit 58578d
      typename BOOST_MPL_AUX_NA_PARAM(Sequence)
Packit 58578d
    , typename BOOST_MPL_AUX_NA_PARAM(Predicate)
Packit 58578d
    >
Packit 58578d
struct filter_view
Packit 58578d
{
Packit 58578d
 private:    
Packit 58578d
    typedef typename lambda<Predicate>::type pred_;
Packit 58578d
    typedef typename begin<Sequence>::type first_;
Packit 58578d
    typedef typename end<Sequence>::type last_;
Packit 58578d
Packit 58578d
 public:
Packit 58578d
    struct tag;
Packit 58578d
    typedef filter_view type;
Packit 58578d
    typedef typename aux::next_filter_iter< first_,last_,pred_ >::type begin;
Packit 58578d
    typedef aux::filter_iter< last_,last_,pred_ > end;
Packit 58578d
};
Packit 58578d
Packit 58578d
BOOST_MPL_AUX_NA_SPEC(2, filter_view)
Packit 58578d
Packit 58578d
}}
Packit 58578d
Packit 58578d
#endif // BOOST_MPL_FILTER_VIEW_HPP_INCLUDED