"ScL Feature"/
SCL Feature 0.0.1
C++20 composable proxy wrapper with pluggable executor strategy
Loading...
Searching...
No Matches
executor.h File Reference

Customization point for locating the executor inside a wrapper type. More...

Go to the source code of this file.

Namespaces

namespace  scl
 Root namespace of the ScL project.
namespace  scl::feature
 Namespace of the ScL Feature module.

Detailed Description

Customization point for locating the executor inside a wrapper type.

executor_trait maps a wrapper type to its executor member. There is no default implementation — specialize for each wrapper type:

template <>
{
template <typename Self>
static constexpr decltype(auto) executor(Self && self)
{
return ::scl::forward_like<Self>(self.m_impl);
}
};
Trait that provides access to the executor inside a wrapper.
Definition executor.h:33
Template Parameters
TThe wrapper type (cv-ref stripped).