I am going to initialize a 2D vector in a member function, where the input arguments are planned to be fed into determined indexes within the function argument. Furthermore, I'm not gonna use [] operator to member access due to safety stuffs. How can I use at() function in order to access to the index of a 2D vector, as below?
vector<vector<double>> weight;
void Connection::setWeight(const double& value, const double& i, const double& j)
{
// The other scheme except: weight[i][j] = value;
}