CAutoPtrElementTraits Class
This class provides methods, static functions, and typedefs useful when creating collections of smart pointers.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
Syntax
template<typename T>
class CAutoPtrElementTraits
: public CDefaultElementTraits<ATL::CAutoPtr<T>>
Parameters
T
The pointer type.
Members
Public Typedefs
Name | Description |
---|---|
CAutoPtrElementTraits::INARGTYPE | The data type to use for adding elements to the collection class object. |
CAutoPtrElementTraits::OUTARGTYPE | The data type to use for retrieving elements from the collection class object. |
Remarks
This class provides methods, static functions, and typedefs for aiding the creation of collection class objects containing smart pointers. The classes CAutoPtrArray and CAutoPtrList derive from CAutoPtrElementTraits
. If building a collection of smart pointers that requires vector new and delete operators, use CAutoVectorPtrElementTraits instead.
Inheritance Hierarchy
CAutoPtrElementTraits
Requirements
Header: atlcoll.h
CAutoPtrElementTraits::INARGTYPE
The data type to use for adding elements to the collection class object.
typedef CAutoPtr<T>& INARGTYPE;
CAutoPtrElementTraits::OUTARGTYPE
The data type to use for retrieving elements from the collection class object.
typedef T *& OUTARGTYPE;
See also
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ