I have a vector of pairs
std::vector<int,double> lambda;
I would like to remove the kth element, i.e
lambda.erase(&lambda[k]);
lambda.erase(lambda[k]);
Both of these attempts throws a no matching function call error:
error: no matching function for call to βstd::vector<std::pair<int, double> >::erase(__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, double> >, std::pair<int, double> >::value_type&)β
lambda.erase(lambda[k]);