Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Dft_Map_Op< tgtT, srcT > Struct Template Reference

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.
 

Detailed Description

template<typename tgtT, typename srcT>
struct Aleph::Dft_Map_Op< tgtT, srcT >

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.

Template Parameters
tgtTType of the result.
srcTType of the item.

Definition at line 151 of file ahFunctional.H.

Member Function Documentation

◆ operator()()

template<typename tgtT , typename srcT >
tgtT Aleph::Dft_Map_Op< tgtT, srcT >::operator() ( const srcT &  item) const
inlinenoexcept

Converts an item to the type of the result.

Parameters
[in]itemThe item.
Returns
item as a tgtT.
Exceptions
Anythingthat the conversion throws; it is noexcept when the conversion is.

Definition at line 160 of file ahFunctional.H.


The documentation for this struct was generated from the following files: