Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Struct next

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Struct next

boost::proto::functional::next — A PolymorphicFunctionObject type that invokes the std::next() function on its arguments.

Synopsis

// 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;
};

Description

Полиморфная функция Объекттип, который вызывает функцию<std::next()>на своих аргументах.

next public member functions

  1. <
    template<typenameForwardIterator>voidoperator()(ForwardIteratorx)const;
    >

    Возвращение:

    <std::next(x)>

  2. <
    template<typenameForwardIterator>
     voidoperator()(ForwardIteratorx,
                     typenamestd::iterator_traits<ForwardIterator>::difference_typen)const;
    >

    Возвращение:

    <std::next(x, n)>


PrevUpHomeNext

Статья Struct next раздела The Boost C++ Libraries BoostBook Documentation Subset Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 01:00:15/0.0035359859466553/0