function object
std::ranges::destroy_n
- Header
<memory>- Scope
std::ranges- cppreference
- std::ranges::destroy_n
Synopsis
inline constexpr /* implementation-defined */ destroy_n = {};Call signatures
destroy_n is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<nothrow_input_iterator I> requires std::destructible<iter_value_t<I>> static constexpr I destroy_n(I first, iter_difference_t<I> n) noexcept; - (2)
template<execution_policy ExecutionPolicy, nothrow_random_access_iterator I> requires std::destructible<iter_value_t<I>> static I destroy_n( ExecutionPolicy&&, I first, iter_difference_t<I> n) noexcept;