View Template Library


dereference_traits<T>

Category: Utilities

Component type: type

Description

dereference_traits<T> is a traits class for mapping types at compile time. dereference_traits<> is used to get the base type of reference types and implements the following mapping:

From

To

T

T

T &

T

T & const

T const



Example

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

Definition

Defined in view_traits.hpp.

Template parameters

Parameter

Description

Default

T

The type of dereference_traits's arguments.


Model of

Assignable

Type requirements

None.

Public base classes

None.

Members

Member

Where defined

Description

type

dereference_traits

The type of the first argument: T

dereference_traits()

DefaultConstructible

The default constructor.



Notes

See also




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