T
toton
Hi,
I am developing one container of my own, which has iterators.
the iterator is not derived from boost iterator facade (for some
other reason), instead it is manually designed.
Now when I am interfacing it with other boost libraries (like
permutation_iterator, sub_range etc), I get a few errors related to
iterator traits.
Now my question
1) What are the traits needed for iterator (and const iterator) ?
any addition/deletion from the list ?
1) size_type
2) reference
3) pointer
4) value_type
5) iterator_category
6) difference_type
2) For const_iterator what are the type of the following in a
iterator ?
1)value_type T or const T ?
2) reference T& or const T&
3) pointer T* or const T*
Thanks
abir
I am developing one container of my own, which has iterators.
the iterator is not derived from boost iterator facade (for some
other reason), instead it is manually designed.
Now when I am interfacing it with other boost libraries (like
permutation_iterator, sub_range etc), I get a few errors related to
iterator traits.
Now my question
1) What are the traits needed for iterator (and const iterator) ?
any addition/deletion from the list ?
1) size_type
2) reference
3) pointer
4) value_type
5) iterator_category
6) difference_type
2) For const_iterator what are the type of the following in a
iterator ?
1)value_type T or const T ?
2) reference T& or const T&
3) pointer T* or const T*
Thanks
abir