function object
std::ranges::destroy
- Header
<memory>- Scope
std::ranges- cppreference
- std::ranges::destroy
Synopsis
inline constexpr /* implementation-defined */ destroy = {};Call signatures
destroy is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<nothrow_input_range R> requires std::destructible<range_value_t<R>> static constexpr borrowed_iterator_t<R> destroy(R&& r) noexcept; - (2)
template<nothrow_input_iterator I, nothrow-sentinel-for<I> S> requires std::destructible<iter_value_t<I>> static constexpr I destroy(I first, S last) noexcept; - (3)
template< execution_policy ExecutionPolicy, nothrow_sized_random_access_range R> requires std::destructible<range_value_t<R>> static borrowed_iterator_t<R> destroy(ExecutionPolicy&&, R&& r) noexcept; - (4)
template< execution_policy ExecutionPolicy, nothrow_random_access_iterator I, nothrow-sized-sentinel-for<I> S> requires std::destructible<iter_value_t<I>> static I destroy(ExecutionPolicy&&, I first, S last) noexcept;