System::Collections::Generic::ListPtr 类

ListPtr class

List pointer with access operators. This type is a pointer to manage other object’s deletion. It should be allocated on stack and passed to functions either by value or by const reference.

template<typename T>class ListPtr : public System::SmartPtr<T0>

方法

方法描述
ListPtr(std::nullptr_t)初始化空指针。
ListPtr(const SharedPtr<List<T>>&)初始化指向指定列表的指针。
operator==(std::nullptr_t) const检查 List 指针是否为空。
operator[](int)访问器。
operator[](int) const访问器。

另见