Boost C++ 库

“...世界上最受推崇和专业设计的 C++ 库项目之一。” Herb SutterAndrei Alexandrescu, C++ 编码规范

PrevUpHomeNext

结构体 advance

boost::proto::functional::advance — 一个 多态函数对象 类型,它在其参数上调用 std::advance() 函数。

概要

// In header: <boost/proto/functional/std/iterator.hpp>


struct advance :  proto::callable {
  // types
  typedef void result_type;

  // public member functions
  template<typename InputIterator> template<typename Distance> 
    void operator()(InputIterator &, Distance) const;
};

描述

一个 多态函数对象 类型,它在其参数上调用 std::advance() 函数。

advance 公有成员函数

  1. template<typename InputIterator> template<typename Distance> 
      void operator()(InputIterator & x, Distance n) const;

    调用 std::advance(x, n)


PrevUpHomeNext