A variable declaration has three basic parts.
TYPE NAME = VALUE;
template <typename T> | |
auto makeSomething(T& t) -> decltype(t.makeSomething()) { | |
auto thing = t.makeSomething(); | |
// edit thing's properties | |
return thing; | |
} |
for(vector<int>::iterator itr = people.begin(); itr != people.end(); itr++) { | |
// do something | |
} |