System::SmartPtr::operator[] method

SmartPtr::operator[] method

Accessor for array elements. Only compiles if SmartPtr_ is specialization of System::Array.

template<typename IdxType> decltype(System::Details::GetByIndex(std::declval<const SmartPtr_ *>(), std::declval<IdxType>())) System::SmartPtr<T>::operator[](IdxType idx) const
ParameterDescription
IdxTypeType of index (assumed integral).
ParameterTypeDescription
idxIdxTypeIndex in array.

ReturnValue

Array value at idx position.

See Also