1 #ifndef TAO_BUFFER_ALLOCATOR_T_CPP
2 #define TAO_BUFFER_ALLOCATOR_T_CPP
4 #include "tao/Buffer_Allocator_T.h"
5 #include "ace/Global_Macros.h"
8 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
12 template <typename handler_type
, typename alloc_type
>
13 TAO_Buffer_Allocator
<handler_type
, alloc_type
>::TAO_Buffer_Allocator (alloc_type
*allocator
) :
18 template <typename handler_type
, typename alloc_type
>
20 TAO_Buffer_Allocator
<handler_type
, alloc_type
>::allocate ()
22 handler_type
* myvalue
= 0;
23 ACE_NEW_MALLOC_RETURN (myvalue
,
24 static_cast <handler_type
*>(
25 allocator_
->malloc (sizeof (handler_type
))),
31 template <typename handler_type
, typename alloc_type
>
33 TAO_Buffer_Allocator
<handler_type
, alloc_type
>::release (handler_type
*ptr
)
41 TAO_END_VERSIONED_NAMESPACE_DECL
43 #endif /* TAO_BUFFER_ALLOCATOR_T_CPP */