Did you know?
The way the STL takes comparators is not the better thing in some cases, like with the following comparator:
[] (const T& a, const T& b) { return expensive_function(a) < expensive_function(b); }
November 14-16, Berlin, Germany
November 18-23, Wrocław, Poland
November 25, Wrocław, Poland
February 10-15, Hagenberg, Austria
March 19-21, Madrid, Spain
April 1-4, Bristol, UK
June 16-21, Sofia, Bulgaria
By Adrien Hamelin | May 26, 2015 08:00 AM | Tags: performance basics
The way the STL takes comparators is not the better thing in some cases, like with the following comparator:
[] (const T& a, const T& b) { return expensive_function(a) < expensive_function(b); }
power said on May 26, 2015 06:28 PM:
Add a Comment
Comments are closed.