View Template Library


deconst_traits<T>

Category: Utilities

Component type: type

Description

deconst_traits<T> is a traits class for mapping types at compile time. deconst_traits<> is used to remove const modifiers from types and implements the following mapping:

From

To

T

T

T const

T

T const &

T &



Example

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

Definition

Defined in view_traits.hpp.

Template parameters

Parameter

Description

Default

T

The type of deconst_traits's arguments.


Model of

Assignable , DefaultConstructible

Type requirements

None.

Public base classes

None.

Members

Member

Where defined

Description

type

deconst_traits

The deconst type of the template argument: T

deconst_traits()

DefaultConstructible

The default constructor.



Notes

See also




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