simplify template code like std::invoke_result<T>::type

This commit is contained in:
oltolm 2024-03-20 17:28:59 +01:00 committed by Elad Ashkenazi
parent 9e9a3262eb
commit 862727e9bf
6 changed files with 6 additions and 5 deletions

View file

@ -410,7 +410,7 @@ namespace rsx
std::sort(begin(), end(), predicate);
}
template <typename F, typename U = std::invoke_result<F, const Ty&>::type>
template <typename F, typename U = std::invoke_result_t<F, const Ty&>>
requires std::is_invocable_v<F, const Ty&>
simple_array<U> map(F&& xform) const
{