|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Default mapping operation: the conversion of the item, which is its copy when the two types are the same. More...
#include <ahFunctional.H>
Public Member Functions | |
| tgtT | operator() (const srcT &item) const noexcept(noexcept(static_cast< tgtT >(item))) |
| Converts an item to the type of the result. | |
Default mapping operation: the conversion of the item, which is its copy when the two types are the same.
It is not callable when the item does not convert to the result, so asking whether it is, as a requires clause does, is not an error. maps() of the mixins does not call it between items of one type: it copies each item into its result, once.
| tgtT | Type of the result. |
| srcT | Type of the item. |
Definition at line 151 of file ahFunctional.H.
|
inlinenoexcept |
Converts an item to the type of the result.
| [in] | item | The item. |
item as a tgtT. | Anything | that the conversion throws; it is noexcept when the conversion is. |
Definition at line 160 of file ahFunctional.H.