$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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