Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #12858

Re: Why the iterator_traits is needed?

From "Bo Persson" <bop@gmb.dk>
Newsgroups comp.lang.c++
Subject Re: Why the iterator_traits is needed?
Date 2011-12-29 17:58 +0100
Message-ID <9m3kgvF7qfU1@mid.individual.net> (permalink)
References <jdi623$8s6$1@speranza.aioe.org>

Show all headers | View raw


izhak wrote:
> Why do we need the iterator_traits if it's just a simple
> redefinition of some of the Iterator concept's members?

It's not just that.

There is also a specialization for pointer, which doesn't have the 
concept members.

Pointers are also iterators!


Bo Persson

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Why the iterator_traits is needed? izhak <iz.hak@mail.ru> - 2011-12-29 16:55 +0000
  Re: Why the iterator_traits is needed? "Bo Persson" <bop@gmb.dk> - 2011-12-29 17:58 +0100
    Re: Why the iterator_traits is needed? izhak <iz.hak@mail.ru> - 2011-12-29 17:10 +0000
  Re: Why the iterator_traits is needed? 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-29 16:42 -0800
    Re: Why the iterator_traits is needed? 88888 Dihedral <dihedral88888@googlemail.com> - 2012-01-07 23:19 -0800

csiph-web