1 #ifndef BOOST_STATECHART_EXAMPLE_UNIQUE_OBJECT_HPP_INCLUDED
2 #define BOOST_STATECHART_EXAMPLE_UNIQUE_OBJECT_HPP_INCLUDED
3 //////////////////////////////////////////////////////////////////////////////
4 // Copyright 2002-2006 Andreas Huber Doenni
5 // Distributed under the Boost Software License, Version 1.0. (See accompany-
6 // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 //////////////////////////////////////////////////////////////////////////////
11 #include "UniqueObjectAllocator.hpp"
13 #include <cstddef> // size_t
17 //////////////////////////////////////////////////////////////////////////////
18 template< class Derived >
22 //////////////////////////////////////////////////////////////////////////
23 void * operator new( std::size_t size )
25 return UniqueObjectAllocator< Derived >::allocate( size );
28 void operator delete( void * p, std::size_t size )
30 UniqueObjectAllocator< Derived >::deallocate( p, size );
34 //////////////////////////////////////////////////////////////////////////