View Template Library


reference_traits<T>

Category: Utilities

Component type: type

Description

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

From

To

T

T&

T&

T&



Example

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

Definition

Defined in view_traits.hpp.

Template parameters

Parameter

Description

Default

T

The type of reference_traits's arguments.


Model of

Assignable

Type requirements

None.

Public base classes

None.

Members

Member

Where defined

Description

type

reference_traits

The reference type of the first argument: T&

const_type

reference_traits

The const reference type of the first argument: T const &

reference_traits()

DefaultConstructible

The default constructor.



Notes

See also




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