View Template Library


const_traits<T>

Category: Utilities

Component type: type

Description

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

From

To

T

T const

T&

T const &



Example

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

Definition

Defined in view_traits.hpp.

Template parameters

Parameter

Description

Default

T

The type of const_traits's arguments.


Model of

Assignable

Type requirements

None.

Public base classes

None.

Members

Member

Where defined

Description

type

const_traits

The const type of the first argument: T

const_traits()

DefaultConstructible

The default constructor.



Notes

See also




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