Update .clang-format

This commit is contained in:
gaztin committed 2026-07-11 22:27:48 +02:00
1 parent d1890b6e18
commit af1baeeef7
6 files changed
+14 -14

No files matched your search

+4 -4
View File
@@ -14,7 +14,7 @@ struct function_traits
};
template<typename T>
requires callable<T>
requires callable<T>
struct function_traits<T>
{
using return_type = typename function_traits<decltype(&T::operator())>::return_type;
@@ -50,12 +50,12 @@ struct function_traits<Ret (Class::*)(Arg0, Args...) const>
};
template<typename T>
using return_type_t = typename function_traits<T>::return_type;
using return_type_t = typename function_traits<std::remove_cvref_t<T>>::return_type;
template<typename T>
using first_argument_type_t = typename function_traits<T>::first_argument_type;
using first_argument_type_t = typename function_traits<std::remove_cvref_t<T>>::first_argument_type;
template<typename T, typename Arg>
concept callable_with_converted_argument = requires(T&& callable, Arg&& arg) { callable(typename traits::first_argument_type_t<T>{arg}); };
concept callable_with_argument_converted = requires(T&& callable, Arg&& arg) { callable(core::first_argument_type_t<T>{arg}); };
}