* \brief Allocates storage * * Returns a pointer to the first element in a block of storage * count*sizeof(T) bytes in size. The block is aligned * appropriately for objects of type \a T. Throws the exception * \a bad_alloc if the storage is unavailable. */
| 399 | * \a bad_alloc if the storage is unavailable. |
| 400 | */ |
| 401 | pointer allocate(size_type count) { |
| 402 | return static_cast<pointer>(region.ralloc(sizeof(T)*count)); |
| 403 | } |
| 404 | |
| 405 | /** |
| 406 | * \brief Allocates storage |