Re: [Boost-bugs] [Boost C++ Libraries] #1879: region allocators: auto_alloc, scoped_alloc

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1879: region allocators: auto_alloc, scoped_alloc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-07 07:09:29


#1879: region allocators: auto_alloc, scoped_alloc
---------------------------+------------------------------------------------
  Reporter: xushiwei | Owner:
      Type: Tasks | Status: new
 Milestone: Boost 1.36.0 | Component: None
   Version: Boost 1.35.0 | Severity: Problem
Resolution: | Keywords:
---------------------------+------------------------------------------------
Comment (by xushiwei):

 [45190]:

 1. Update GC Allocator specification. The following is minimum
 specification for GC Allocator:

 {{{
 typedef void (*DestructorType)(void* data);

 concept GCAllocator
 {
     // Allocate memory without given a cleanup function
     void* allocate(size_t cb);

     // Allocate unmanaged memory with a cleanup function
     void* unmanaged_alloc(size_t cb, DestructorType fn);

     // Commit unmanaged memory to be managed.
     void* manage(void* p, destructor_t fn);

     // Deprecated: allocate memory with a cleanup function
     void* allocate(size_t cb, DestructorType fn) {
        return manage(unmanaged_alloc(cb, fn), fn);
     }

     // Cleanup and deallocate all allocated memory by this GC Allocator
     void clear();

     // Swap two GCAllocator instances
     void swap(GCAllocator& o);
 };
 }}}

 2. testExceptionSemantics

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1879#comment:13>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC