[containers] Implement std::forward_list?

5 Aug
2011
5 Aug
'11
8:29 a.m.
Hi. Will there be any analogous type in the proposed containers library for the C++0x std::forward_list [23.3.4 in n3290]? It's essentially a slist but without any of the costly operations like size(). -- Lars Viklund | zao@acc.umu.se

5 Aug
5 Aug
9:34 a.m.
El 05/08/2011 10:29, Lars Viklund escribió:
Hi.
Will there be any analogous type in the proposed containers library for the C++0x std::forward_list [23.3.4 in n3290]? It's essentially a slist but without any of the costly operations like size().
There is no at this time, but it wouldn't be hard to implement one, we just need to change the flag to the internal boost::intrusive::slist to constant_time_size<false> ;-), and of course fix remaining interface to make it standard conformant. Best, Ion
5061
Age (days ago)
5061
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ion Gaztañaga
-
Lars Viklund