QuackatronHQ / Gigarepo

Use of inefficient generic algorithm over efficient container based ones CXX-P2000
Performance
Major
a month agoa year old
this STL algorithm call should be replaced with a container method
34
35bool record_exist(std::set<EmployeeDetails> records, EmployeeDetails e) {
36  // rather use records.find(e) != records.end();
37  return std::find(records.begin(), records.end(), e) != records.end();38}