add entry to wordList
I've a probably very easy question, but I tried already a lot - nearly the cpl. afternoon - but nothing worked so far.
First I used something like vector<std::string> and here I added strings with the command vector.push_back(....)
Now I want to use the std foam syntax
I created a wordList what should be nearly the same as vector<std::string>
To add elements at the end the .append function should work.
But now the problems comes by:
I can append only another wordList but I'm not able to append a entry like
testList.append("the first entry");
and so far.
Is anybody able to help me? Would be greatful.
Thx a lot, bye
2. If you are doing several appends, using "List" is very inefficient.
A "List" is normally used with pre-allocated space.
Note that if you have a list of bool values, you should consider using PackedBoolList - it has many pleasant features that make it behave somewhat like a DynamicList.
Thx already now for your reply. Some time ago I worked with those dynamic Lists. I will try what's possible in this case. I will come back to this threat then in the next days because at the moment other project work is urgent.
Thx & have a nice weekend
working with those dynamic lists is exactly what I needed because when using vector OF has problems with other include files.
Thx @ all, Best Regards, Peter
|All times are GMT -4. The time now is 00:56.|