Home | Libraries | People | FAQ | More |
boost::proto::functional::next — A PolymorphicFunctionObject type that invokes the
std::next()
function on its arguments.
// In header: <boost/proto/functional/std/iterator.hpp> struct next : proto::callable { // member classes/structs/unions template<typename This, typename ForwardIterator> struct result<This(ForwardIterator)> { // types typedef typename boost::remove_const< typename boost::remove_reference<ForwardIterator>::type >::type type; }; template<typename This, typename ForwardIterator, typename Distance> struct result<This(ForwardIterator, Distance)> { // types typedef typename boost::remove_const< typename boost::remove_reference<ForwardIterator>::type >::type type; }; // public member functions template<typename ForwardIterator> void operator()(ForwardIterator) const; template<typename ForwardIterator> void operator()(ForwardIterator, typename std::iterator_traits<ForwardIterator>::difference_type) const; };
A PolymorphicFunctionObject type that invokes the
std::next()
function on its arguments.
next
public member functionstemplate<typename ForwardIterator> void operator()(ForwardIterator x) const;
Returns: |
|
template<typename ForwardIterator> void operator()(ForwardIterator x, typename std::iterator_traits<ForwardIterator>::difference_type n) const;
Returns: |
|