| 1569 | { |
| 1570 | template <class Rcvr> |
| 1571 | auto get_allocator(Rcvr const & rcvr) |
| 1572 | { |
| 1573 | if constexpr (__callable<get_allocator_t, env_of_t<Rcvr>>) |
| 1574 | { |
| 1575 | return STDEXEC::get_allocator(STDEXEC::get_env(rcvr)); |
| 1576 | } |
| 1577 | else |
| 1578 | { |
| 1579 | return std::allocator<char>{}; |
| 1580 | } |
| 1581 | } |
| 1582 | |
| 1583 | template <class Receiver> |
| 1584 | using allocator_of_t = decltype(get_allocator(__declval<Receiver>())); |
no test coverage detected