Category: functors |
Component type: type |
dereference<T> is a function object. Specifically, it is an Adaptable Unary Function, which means it is a function object that promotes a pointer to a reference. If f is a pointer to an object of class dereference<T> and x is a pointer to an object of class T, then f(x) returns *x.
Defined in functors.hpp.
Parameter |
Description |
Default |
---|---|---|
T |
The type of dereference's arguments. |
|
Adaptable Unary Function, DefaultConstructible
T has an operator*(). std::iterator_traits<>
has been specialized for T
.
unary_function<T,std::iterator_traits<T>::reference>.
Member |
Where defined |
Description |
---|---|---|
argument_type |
The type of the tmplate argument: T |
|
result_type |
The type of the result: std::iterator_traits<T>::reference |
|
dereference() |
The default constructor. |
|
bool operator()(const T& x) |
Function call operator. The return value is T::operator*(x). |
All of dereference's members are defined in the Adaptable Unary Function and DefaultConstructible requirements. dereference does not introduce any new members.
VTL Home
Copyright
© 1999 Konrad-Zuse-Zentrum für Informationstechnik Berlin &
Gary Powell All Rights Reserved.