blob: e4b66406db6618e0d644362714c4a0bac4cf9ff4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#pragma once
#include <type_traits>
template <typename NotAFunc>
struct is_func : public std::false_type // NOLINT(readability-identifier-naming)
{
};
template <typename Return, typename... Args>
struct is_func<Return (*)(Args...)> : public std::true_type
{
};
template <typename PossiblyFunc>
inline constexpr bool is_func_v = is_func<PossiblyFunc>::value;
|