"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/concepts/wrapper.h>
4#include <scl/utility/type_traits/forward_like.h>
5
6namespace scl::feature::detail
7{
12 struct executor_access
13 {
15 // NOLINTBEGIN(cppcoreguidelines-missing-std-forward)
16 template <concepts::wrapper Wrapper>
17 static constexpr decltype(auto) get(Wrapper && w) noexcept
18 {
19 return ::scl::forward_like<Wrapper>(w.m_executor);
20 }
21 // NOLINTEND(cppcoreguidelines-missing-std-forward)
22 };
23} // namespace scl::feature::detail