mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
simplify template code like std::invoke_result<T>::type
This commit is contained in:
parent
9e9a3262eb
commit
862727e9bf
6 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue