less is a function object. The so-called function object is a class that overloads the call operator (that is, the "()" operator). Its object can be "used like a function", so it is called a function object. First A bracket indicates calling the constructor, and the following brackets are its parameters. This should be an example on C++ Primer. For details, please see the introduction to the function call operator on page 506 of C++ Primer 5th.
less is a function object. The so-called function object is a class that overloads the call operator (that is, the "()" operator). Its object can be "used like a function", so it is called a function object. First A bracket indicates calling the constructor, and the following brackets are its parameters. This should be an example on C++ Primer. For details, please see the introduction to the function call operator on page 506 of C++ Primer 5th.