Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler committed Oct 20, 2023
1 parent 100f03d commit e51c0d0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions include/stdexec/functional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ namespace stdexec {

namespace __detail {
template <class _Fn, class _Tup>
using __apply_result_t =
decltype(std::apply(__declval<_Fn>(), __declval<_Tup>()));
using __apply_result_t = decltype(std::apply(__declval<_Fn>(), __declval<_Tup>()));

template <class _Fn>
struct __applicable_helper {
Expand All @@ -124,8 +123,7 @@ namespace stdexec {

template <class _Fn, class _Tup>
concept __nothrow_applicable =
__applicable<_Fn, _Tup>
&& noexcept(std::apply(__declval<_Fn>(), __declval<_Tup>()));
__applicable<_Fn, _Tup>&& noexcept(std::apply(__declval<_Fn>(), __declval<_Tup>()));

template <class _Fn, class _Tup>
requires __applicable<_Fn, _Tup>
Expand All @@ -135,8 +133,7 @@ namespace stdexec {
template <class _Fn, class _Tup>
requires __applicable<_Fn, _Tup>
constexpr auto operator()(_Fn&& __fn, _Tup&& __tup) const
noexcept(__nothrow_applicable<_Fn, _Tup>)
-> __apply_result_t<_Fn, _Tup> {
noexcept(__nothrow_applicable<_Fn, _Tup>) -> __apply_result_t<_Fn, _Tup> {
return std::apply((_Fn&&) __fn, (_Tup&&) __tup);
}
};
Expand Down

0 comments on commit e51c0d0

Please sign in to comment.