23 General utilities library [utilities]

23.10 Memory [memory]

23.10.10 Specialized algorithms [specialized.algorithms]

23.10.10.7 destroy [specialized.destroy]

template <class T> void destroy_at(T* location);

Effects: Эквивалентно:

location->~T();

template <class ForwardIterator> void destroy(ForwardIterator first, ForwardIterator last);

Effects: Эквивалентно:

for (; first!=last; ++first)
  destroy_at(addressof(*first));
template <class ForwardIterator, class Size> ForwardIterator destroy_n(ForwardIterator first, Size n);

Effects: Эквивалентно:

for (; n > 0; (void)++first, --n)
  destroy_at(addressof(*first));
return first;