1 #ifndef guard_bounded_value_allocation_traits_hpp
2 #define guard_bounded_value_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
, CORBA::ULong MAX
, bool dummy
>
21 struct bounded_value_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
[MAX
];
40 inline static value_type
* allocbuf_noinit(CORBA::ULong
/* maximum */)
42 return new value_type
[MAX
];
45 inline static void freebuf(value_type
* buffer
)
50 inline static CORBA::ULong
maximum()
54 /* static CORBA::ULong const MAXIMUM = MAX; */
56 } // namespace details
59 TAO_END_VERSIONED_NAMESPACE_DECL
61 #endif // guard_bounded_value_allocation_traits_hpp