Boost logo

Boost :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2001-06-07 04:02:20


> 24.1 [lib.iterator.requirements] para 1:
> All iterators i support the expression *i, resulting in a
> value of some class, enumeration, or built-in type T,
> called the value type of the iterator.

Thinking more about this sentence, doesn't it mean that a value type of, for
example, an 'std::ostream_iterator<>' is, well, std::ostream_iterator<>? <g>

Synopsis (24.5.2 [lib.ostream.iterator] para 2):

namespace std {
  template <class T, class charT = char, class traits = char_traits<charT> >
  class ostream_iterator:
    public iterator<output_iterator_tag, void, void, void, void> {
  public:
    ...
    ostream_iterator<T,charT,traits>& operator*();
  };
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk