
19 Apr
2009
19 Apr
'09
3:29 a.m.
Thorsten Ottosen wrote:
Mathias Gaunard skrev:
Thorsten Ottosen wrote:
I think single_element_range(x) has been proposed several times. Maybe Neil could include it in range_ex?
Why not simply use boost::list_of(x)?
not very efficient.
I don't see any reason why it couldn't be as efficient as single_element_range(x). Also, list_of can also be used for to make a range out of n elements.