1 #ifndef guard_unbounded_array_allocation_traits_hpp
2 #define guard_unbounded_array_allocation_traits_hpp
6 * @brief Details can be found in the documentation for
7 * TAO::details::generic_sequence
9 * @author Carlos O'Ryan
12 #include "tao/Basic_Types.h"
14 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
20 template<typename T
, bool dummy
>
21 struct unbounded_array_allocation_traits
25 inline static CORBA::ULong
default_maximum()
30 inline static value_type
* default_buffer_allocation()
35 inline static value_type
* allocbuf(CORBA::ULong maximum
)
37 return new value_type
[maximum
];
40 inline static value_type
* allocbuf_noinit(CORBA::ULong maximum
)
42 return new value_type
[maximum
];
45 inline static void freebuf(value_type
* buffer
)
50 } // namespace details
53 TAO_END_VERSIONED_NAMESPACE_DECL
55 #endif // guard_unbounded_array_allocation_traits_hpp