4 ms·
To be pedantic, note that is not the "C++ version" of max(). This is a particular STL's implementation of max(). Different STL implementations may approach it s
by ovao 9y ago
To be pedantic, note that is not the "C++ version" of max(). This is a particular STL's implementation of max(). Different STL implementations may approach it somewhat differently.
In practice, the style for writing STL code is often quite ugly (sometimes deliberately ugly), for reasons which aren't really interesting to most people.
- kzrdude 9y agoIt is interesting, it is related to this downside of C++ that templates have to be defined in header files, instead of say being compiled in some kind of module.