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

Class template constant_iterator

Boost , Chapter 1. Boost.Compute , 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

Class template constant_iterator

boost::compute::constant_iterator — An iterator with a constant value.

Synopsis

// In header: <boost/compute/iterator/constant_iterator.hpp>
template<typename T> 
class constant_iterator {
public:
  // types
  typedef unspecified                 super_type;     
  typedef super_type::reference       reference;      
  typedef super_type::difference_type difference_type;
  // construct/copy/destruct
  constant_iterator(const T &, size_t = 0);
  constant_iterator(const constant_iterator< T > &);
  constant_iterator< T > & operator=(const constant_iterator< T > &);
  ~constant_iterator();
  // public member functions
  size_t get_index() const;
};

Description

Constant_iteratorКласс обеспечивает итератор, который возвращает постоянное значение при отмене.

Например, это может быть использовано для реализации алгоритма заполнения в терминах алгоритма копирования путем копирования из ряда постоянных итераторов:

См. также:

make_constant_iterator()

constant_iterator public construct/copy/destruct

  1. <
    constant_iterator(constT&value,size_tindex=0);
    >
  2. <
    constant_iterator(constconstant_iterator<T>&other);
    >
  3. <
    constant_iterator<T>&operator=(constconstant_iterator<T>&other);
    >
  4. <
    ~constant_iterator();
    >

constant_iterator public member functions

  1. <
    size_tget_index()const;
    >

PrevUpHomeNext

Статья Class template constant_iterator раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 19:53:42/0.0080850124359131/1