View Template Library


pointer_traits<T>

Category: Utilities

Component type: type

Description

pointer_traits<T> is a traits class for mapping types at compile time. pointer_traits<> implements the following mapping:

From

To

T

T*

T&

T*



Example

typedef int & int_ref;
pointer_traits<int_ref>::type type;
is of type int *;.

Definition

Defined in view_traits.hpp.

Template parameters

Parameter

Description

Default

T

The type of pointer_traits's arguments.


Model of

Assignable

Type requirements

None.

Public base classes

None.

Members

Member

Where defined

Description

type

pointer_traits

The reference type of the first argument: T *;

const_type

pointer_traits

The const reference type of the first argument: T const *;

pointer_traits()

DefaultConstructible

The default constructor.



Notes

See also




VTL Home
Copyright © 1999 Konrad-Zuse-Zentrum für Informationstechnik Berlin & Gary Powell All Rights Reserved.