ptr_traits< ptrT>


Detailed Description

A pointer may be any type used to refer to another, possibly not visible, type.

In the following table, X denotes a Traits class defining types and functions for the pointer type PtrT. The type of the item refered to is T. T may be void or an incomplete type. The argument p is of type PtrT.

expression return type notes complexity
X::element_type T the type of the item refered to compile time
X::pointer_type PtrT if opaque, may be any type used to refer to T compile time
X::const_pointer_type implementation defined type corresponding to PtrT refering to a const T compile time
X::is_array bool true iff T is an array; type may also be convertable to bool compile time
X::delete_ptr(p) void destructs and deallocates item refered to by p; if p is empty, delete_ptr() has no effect implementation defined
X::empty_ptr(p) bool result is true if p refers to nothing (corresponds to NULL); false otherwise constant


Classes

struct  ptr_traits< auto_ptr< T, Traits > >
struct  ptr_traits< auto_resource< T, Traits > >
struct  ptr_traits< std::auto_ptr< T > >
struct  ptr_traits< T * >
struct  ptr_traits< T(*)[]>
struct  runtime_cast_t< R, auto_ptr< T, Traits > >
struct  runtime_cast_t< R, auto_resource< T, Traits > >
struct  runtime_cast_t< R, std::auto_ptr< T > >

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google