#include "monadicfuture.h"
|
template<typename F> |
static FmapResult_t< F > | Apply (const QFuture< T > &fut, const F &func) |
|
static FmapResult_t< F > | Apply (const T &functor, const F &function) |
| Applies the function to the each of the elements inside the functor.
|
|
template<typename T>
struct LC::Util::InstanceFunctor< QFuture< T > >
Definition at line 18 of file monadicfuture.h.
◆ FmapResult_t [1/2]
The type of the functor after its elements were mapped by the function F.
This type should correspond to the return type of the Apply() function when passed this functor and a function of type F.
- Template Parameters
-
F | The type of the function to apply to the elements inside this functor. |
Definition at line 50 of file functor.h.
◆ FmapResult_t [2/2]
template<typename T>
template<typename F>
◆ UndefinedTag
◆ Apply() [1/2]
template<typename T>
template<typename F>
◆ Apply() [2/2]
Applies the function to the each of the elements inside the functor.
- Parameters
-
[in] | functor | The functor whose values are subject to function. |
[in] | function | The function that should be applied to the values in the functor. |
- Returns
- A functor of type FmapResult_t<F> where each element the result of applying the function to the corresponding element in the source functor.
- Template Parameters
-
F | The type of the function to apply to the elements in the function. |
The documentation for this struct was generated from the following file:
- /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17335.ge406ffdcaf-build/leechcraft-0.6.70-17335-ge406ffdcaf/src/util/threads/monadicfuture.h