我必须实现一个看起来像这样的功能: MyList * sum (MyList * l1, MyList * l2) {
MyList * newlist = new MyList();
//Adds two objects and place the result in a third new list
return newlist;
}
功能了两个列表,并放置
是否可以定义指向特征:: Map对象的指针?原始代码是非常复杂,但这里是我想实现(伪代码) void testfunction1(... XPtr){
// XPtr is a pointer
// create a vector, map it to a Map object and make XPtr point to the latter
VectorXd X