dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
SFINAEHelpers.hpp
1// SPDX-FileCopyrightText: 2025 Vincent Leroy
2// SPDX-License-Identifier: MIT
3//
4// This file is part of dfx.
5//
6// Licensed under the MIT License. See the LICENSE file in the project root
7// for full license information.
8
9#pragma once
10
12{
13 template<class> struct memberClass;
14
15 template<class R, class C, class... A>
16 struct memberClass<R (C::*)(A...)> { using type = C; };
17
18 template<class R, class C, class... A>
19 struct memberClass<R (C::*)(A...) const> { using type = C; };
20
21 template<class C>
22 using memberClass_t = typename memberClass<C>::type;
23} // !namespace dfx::Utils::SFINAE
Definition SFINAEHelpers.hpp:12
Definition SFINAEHelpers.hpp:13