跳到主要内容

GetMax

函数功能

获取最大的T对象指针。

函数原型

const T *GetMax() const;
T *GetMax();

参数说明

返回值

返回最大的T对象指针。

约束说明

调用示例

int min = -1;
int max = 1024;
Range<int> range(&min,&max);

auto ret = range.GetMax(); // ret指针指向max