13 struct hidden_type {};
15 constexpr static inline bool value = std::is_same_v<T, hidden_type>;
29 template <
template <
typename...>
typename Tmpl,
typename T>
class is_template {
31 template <
typename... Xs>
constexpr static std::true_type test(Tmpl<Xs...>*);
32 template <
typename... Xs>
constexpr static std::false_type test(...);
34 constexpr static inline bool value =
decltype(test(std::declval<T*>()))
::value;
39 template <
template <
typename...>
typename Tmpl,
typename T>
44 template <
typename T,
template <
typename...>
typename Tmpl>
51 template <
typename F,
typename R,
typename... Args>
concept invocable_r = std::is_invocable_r_v<F, R, Args...>;