|
|
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.h.
Parameter |
Description |
Default |
---|---|---|
T |
The type of dereference's arguments. |
|
Adaptable Unary Function, DefaultConstructible
T has an operator*().
Unary_function<T,bool>.
Member |
Where defined |
Description |
---|---|---|
argument_type |
The type of the first argument: T |
|
result_type |
The type of the result: bool |
|
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.
The function object overview, Adaptable Unary Function
Copyright
© 1999 Konrad-Zuse-Zentrum für Informationstechnik Berlin & Gary Powell All Rights Reserved.