KSS Utility
C++ general utilities
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
kss::util::memory Namespace Reference

Items related to dealing with memory, in particular the destruction of objects. More...

Classes

class  NullDelete
 Similar to std::default_delete but does not actually do anything. More...
 

Functions

template<class Iterator , class Allocator >
void destroy (Iterator start, Iterator finish, Allocator &allocator)
 
template<class Iterator , class Allocator >
void destroyN (Iterator start, typename Iterator::size_type n, Allocator &allocator)
 

Detailed Description

Items related to dealing with memory, in particular the destruction of objects.

Function Documentation

template<class Iterator , class Allocator >
void kss::util::memory::destroy ( Iterator  start,
Iterator  finish,
Allocator &  allocator 
)

Destroy the elements from [start,finish).

Definition at line 38 of file memory.hpp.

template<class Iterator , class Allocator >
void kss::util::memory::destroyN ( Iterator  start,
typename Iterator::size_type  n,
Allocator &  allocator 
)

Destroy n elements starting at start.

Definition at line 48 of file memory.hpp.