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); }
March 11-13, Online
March 16-18, Madrid, Spain
March 23-28, Croydon, London, UK
May 4-8, Aspen, CO, USA
May 4-8, Toronto, Canada
June 8 to 13, Brno, Czechia
June 17-20, Folkestone, UK
September 12-18, Aurora, CO, USA
November 6-8, Berlin, Germany
November 16-21, Búzios, Rio De Janeiro, Brazil
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.