Boost logo

Boost Users :

Subject: [Boost-users] [Iterator] shared_container_iterator usability
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2012-03-19 10:43:34


Hello boosters,

a design question: how often (if ever) and under which circumstances
do you use shared_container_iterator?

(http://www.boost.org/doc/libs/1_49_0/libs/utility/shared_container_iterator.html)

I don't feel too good about allocating a vector<> on the heap but I
guess it was made for some reason and motivated by actuall need. What
are good use cases for such iterator? Obviously returning a container
from function (as presented in example) is not one of them.

Cheers,
Simon


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net