Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (49 sloc) 2.46 KB
title ms.date f1_keywords helpviewer_keywords ms.assetid
CAutoPtrElementTraits Class
11/04/2016
CAutoPtrElementTraits
ATLCOLL/ATL::CAutoPtrElementTraits
ATLCOLL/ATL::CAutoPtrElementTraits::INARGTYPE
ATLCOLL/ATL::CAutoPtrElementTraits::OUTARGTYPE
CAutoPtrElementTraits class
777c1b14-6ab7-491f-b9a5-be149e71d4a2

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

CDefaultCompareTraits

CDefaultHashTraits

CElementTraitsBase

CDefaultElementTraits

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

CDefaultElementTraits Class
Class Overview

You can’t perform that action at this time.