
15 Jun
2010
15 Jun
'10
5:13 p.m.
er skrev:
Michael McNeil Forbes wrote:
What is the recommended way of initializing an array from a concatenation of other arrays?
list_of::range looks right and I would like to use something like:
array
a = { 1, 2 }; array b = { 3, 4 }; array c = list_of<int>().range(a).range(b); However, list_of<int>() inserts a default value (so that list_of<int>().range(a).range(b) == {0,1,2,3,4}).
Maybe we should add empty_list_of<int>() ? It's quite trivial to add. -Thorsten