4 ms·
This is indeed painful. However, with C++11's move semantics, I suspect libraries will over time develop in ways that make this less painful. See nly's comment
by nhaehnle 13y ago
This is indeed painful. However, with C++11's move semantics, I suspect libraries will over time develop in ways that make this less painful. See nly's comment for an example.
- humanrebar 13y agoIt's mostly painful because of all the iterator pairs, not because of the allocation. Though I agree that better libraries could clean this sort of trivial transformation up immensely.