释义 |
CTypedPtrArray::operator []
TYPE& operator []( int nIndex ); TYPE operator []( int nIndex ) const;
参数:TYPE | 指定保存在此数组的元素的类型的模板参数。 | nIndex | 一个整数索引,它大于或等于0,小于或等于由BASE_CLASS::GetUpperBound返回的值。 |
说明: 这些内联操作符调用BASE_CLASS::operator []。 第一个操作符,对不是const的数组使用,可以使用在一个赋值语句的右边(r-值)或左边(l-值)。第二个操作符,是对const数组使用的,只能被使用在右边。
请参阅:CObArray::operator [] |