![]() |
LeechCraft
0.6.70-13729-g7046a9d2a7
Modular cross-platform feature rich live environment.
|
Implementation of the Functor class for boost.optional. More...
#include "functor.h"
Public Types | |
template<typename F > | |
using | FmapResult_t = boost::optional< detail::WrapVoidResult_t< std::decay_t< std::result_of_t< F(T)> >> > |
Static Public Member Functions | |
template<typename F > | |
static FmapResult_t< F > | Apply (const boost::optional< T > &t, const F &f) |
Implementation of the Functor class for boost.optional.
The implementation applies the function to the contents of the boost.optional if it's not empty, otherwise it just leaves an empty boost.optional.
This is analogous to the Maybe type.
T | The element type contained inside the boost.optional. |
using LC::Util::InstanceFunctor< boost::optional< T > >::FmapResult_t = boost::optional<detail::WrapVoidResult_t<std::decay_t<std::result_of_t<F (T)> >> > |
|
inlinestatic |
Definition at line 241 of file functor.h.
References LC::Util::oral::sph::f.