TryGetValue
获得指定索引的列表元素。
bool TryGetValue(
const int index, // 元素索引
T& value // 用来编写的变量
);参数
index
[in] 列表的元素索引。
&value
[out] 将要编写列表元素指定值的变量。
返回值
成功返回true,否则返回false。
获得指定索引的列表元素。
bool TryGetValue(
const int index, // 元素索引
T& value // 用来编写的变量
);index
[in] 列表的元素索引。
&value
[out] 将要编写列表元素指定值的变量。
成功返回true,否则返回false。