Luna::destruct_range

template <typename _Iter>
auto destruct_range(_Iter first, _Iter last) -> enable_if_t< Impl::destruct_range_is_value_type_trivial< _Iter >::value, void >

Destructs every object in the range.

Parameters

  • in first

    An iterator to the first object to be destructed.

  • in last

    An iterator to one-past-last object to be destructed.

Remark

If value_type is trivially destructible, do nothing. Else, calls the destructor for each object in the range.