| 373 | |
| 374 | template <typename T, typename Sequence, seq_size_type N> |
| 375 | inline T* AllocPolicy<T, Sequence, Bounded<N> >::allocbuf() |
| 376 | { |
| 377 | void* const raw = |
| 378 | ACE_Allocator::instance()->malloc(N * sizeof(T)); |
| 379 | T* const mem = static_cast<T*>(raw); |
| 380 | Sequence::ElementPolicy::construct(mem, N, false); |
| 381 | return mem; |
| 382 | } |
| 383 | |
| 384 | template <typename T, typename Sequence> |
| 385 | inline T* AllocPolicy<T, Sequence, Unbounded>::allocbuf(seq_size_type n) |