[intrusive] iterator_to naming and default disposer

21 Aug
2007
21 Aug
'07
8:01 p.m.
Hi Ion, Given that iterator_to turns a reference into an iterator, shouldn't this be to_iterator? Also with the clear/erase_and_dispose functions could there be a default disposer that calls delete? Thanks! -- Cory Nelson

23 Aug
23 Aug
1:13 p.m.
Cory Nelson wrote:
Hi Ion,
Given that iterator_to turns a reference into an iterator, shouldn't this be to_iterator?
Well, iterator_to was chosen in the review as the most convenient name since means "return an iterator to a value".
Also with the clear/erase_and_dispose functions could there be a default disposer that calls delete?
Yes, I can provide one if that's considered useful. Something like this? list.erase_and_dispose(delete_disposer());
Thanks! -- Cory Nelson
Regards, Ion
6503
Age (days ago)
6505
Last active (days ago)
1 comments
2 participants
participants (2)
-
Cory Nelson
-
Ion Gaztañaga