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); }
June 16-21, Sofia, Bulgaria
September 13-19, Aurora, CO, USA
November 6-8, Berlin, Germany
November 16-21, Kona, HI, USA
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.