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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Class discard_iterator

boost::compute::discard_iterator — An iterator which discards all values written to it.


// In header: <boost/compute/iterator/discard_iterator.hpp>

class discard_iterator : public type {
  // types
  typedef unspecified                 super_type;     
  typedef super_type::reference       reference;      
  typedef super_type::difference_type difference_type;

  // construct/copy/destruct
  discard_iterator(size_t = 0);
  discard_iterator(const discard_iterator &);
  discard_iterator & operator=(const discard_iterator &);


See Also:

make_discard_iterator(), constant_iterator

discard_iterator public construct/copy/destruct

  1. discard_iterator(size_t index = 0);
  2. discard_iterator(const discard_iterator & other);
  3. discard_iterator & operator=(const discard_iterator & other);
  4. ~discard_iterator();