我正在通过以下代码:
template <typename String>
void test_decimals()
{
SensibleLessThan<String> mycomparison;
String lhs = "1.212";
String rhs = "1.234";
CHECK_EQUAL(mycomparison(lhs, rhs), true); // CHECK EQUAL is macro
}
我不明白以下构造的含义:
SensibleLessThan<String> mycomparison;
mycomparison(lhs, rhs)
是mycomparison
对象、函数还是函数指针?