写一个模板函数比较大小(小号转移)

template<typename ValueType>

ValueType  Max123(ValueType a, ValueType b)
{
    return a>b ?a : b;
}

posted on 2021-11-26 02:09  lydstory  阅读(65)  评论(0)    收藏  举报

导航