Arm Mbed OS support forum

Using c++ std::vector class in Mbed Studio

i am getting the following error when using the “insert” function of the vector class.

“no matching member function for call to ‘insert’”

does mbed studio use the std::vector class?

Hello Loay,

No errors when I try to compile the following with Mbed:

vector<int>             v;
vector<int>::iterator   it;

for (int i = 0; i < 10; i++)

it = v.begin();
it = v.insert(it, 200);