Allocator.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00020 #include <coil/Allocator.h>
00021 
00022 namespace coil
00023 {
00024   
00032   void* Allocator::New(size_t t) throw (std::bad_alloc)
00033   {
00034     return operator new(t);
00035   }
00036   
00044   void Allocator::Delete(void* p) throw ()
00045   {
00046     operator delete(p);
00047   }
00048 
00056   void* Allocator::NewArray(size_t t) throw (std::bad_alloc)
00057   {
00058     return operator new [](t);
00059   }
00060   
00068   void Allocator::DeleteArray(void* p) throw ()
00069   {
00070     operator delete[](p);
00071   }
00072 };
00073 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:37