You still need to explicitly call twoSum(), and that cannot be hidden.


On 16/09/2017 10:58, Amos Bird wrote:

Ok, i get the idea. So how can I customized the default code expansion so that it can directly evaluate this

class Solution {
public:
  vector<int> twoSum(vector<int>& nums, int target) {

  }
};