Create a labelList from components
Hello foamers,
I would like to create a list of integers from components. Something similar to a vector in the STL: Code:
vector<int> v{ 10, 20, 30, 40, 50 }; labelList does not appear to have this constructor and I would have to: Code:
labelList v (5); |
I guess this will do it:
Code:
labelList v(IStringStream("(0 1 2 3 4 5 6 7 8)")()); |
Quote:
That is just ugly and old school (pre-c++11). Try with this: Code:
labelList v |
All times are GMT -4. The time now is 11:59. |