// C++14 - illustrates deduction of a functions return type. #include #include #include // abs #include "point.h" // Illustration of deduction of a function's return type (C++14): auto find_diagonal_points(std::vector points){ using namespace std; vector res; for(auto p: points) if(abs(p.getx())==abs(p.gety())) res.push_back(p); return res; }