"ScL Feature"/
SCL Feature 0.0.1
C++20 composable proxy wrapper with pluggable executor strategy
Loading...
Searching...
No Matches
executor_access.h
1#pragma once
2
3#include <scl/feature/type_traits/wrapper.h>
4#include <scl/utility/type_traits/forward_like.h>
5
6#include <type_traits>
7
8namespace scl::feature::detail
9{
14 struct executor_access
15 {
17 // NOLINTBEGIN(cppcoreguidelines-missing-std-forward)
18 template <typename WrapperRefer>
19 requires ::scl::feature::is_wrapper_v<::std::remove_cvref_t<WrapperRefer>>
20 static constexpr decltype(auto) get(WrapperRefer && w) noexcept
21 {
22 return ::scl::forward_like<WrapperRefer>(w.m_executor);
23 }
24 // NOLINTEND(cppcoreguidelines-missing-std-forward)
25 };
26} // namespace scl::feature::detail