Date: Wed, 23 Nov 2022 18:58:47 -0800
On Wednesday, 23 November 2022 17:48:44 PST organicoman via Std-Proposals
wrote:
> Jason,The type "std::iterator<T>", is not dumb.
Yes, it is, though I don't think you meant std::iterator. That's not a useful
class at all. And it's deprecated.
Looking at an example of a real iterator: libstdc++'s std::vector<T>::iterator
is a std::__gnu_cxx::normal_iterator<T *, std::vector<T>>:
https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/include/bits/
stl_iterator.h#L1043
That class has exactly one member, which is the pointer.
Your request cannot be implemented.
wrote:
> Jason,The type "std::iterator<T>", is not dumb.
Yes, it is, though I don't think you meant std::iterator. That's not a useful
class at all. And it's deprecated.
Looking at an example of a real iterator: libstdc++'s std::vector<T>::iterator
is a std::__gnu_cxx::normal_iterator<T *, std::vector<T>>:
https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/include/bits/
stl_iterator.h#L1043
That class has exactly one member, which is the pointer.
Your request cannot be implemented.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel DCAI Cloud Engineering
Received on 2022-11-24 02:58:49