but i cannot insert an element to an arbitrary position in the list using:
Expand|Select|Wrap|Line Numbers
- myList.insert(myList.begin()+2500,1000);
no operator "+" matches these operands
operand types are: std::list<int, std::allocator<int>>::iterator +int myList.insert(myList.begin()+2500,1000);
i think the error message makes sense, because as far as i know list doesnt provide random access.
what i want to ask is "how i can insert to an arbitray position in the list?"