|
static ref_cnt_elem_holder * | allocate (size_t n) |
| Return a pointer to an available instance of the class for a container of size n , reusing a container from the recycle bin if possible.
|
|
static ref_cnt_elem_holder * | allocate (size_t n, typename Container::value_type const &init) |
| Return a pointer to an available instance of the class for a container of size n , reusing a container from the recycle bin if possible. Initialize all elements with value init .
|
|
static ref_cnt_elem_holder * | allocate (Container const &other) |
| Return a pointer to an available instance of the class for a container of size n , initializing the held container with the same values as other . Reuse a container from the recycle bin if possible. More...
|
|
static void | deallocate_holder (ref_cnt_elem_holder *holder) |
| Reclaim buffer in holder that is no longer in use and place it in the recycle bin.
|
|
template<typename Container>
struct stapl::composition::ref_cnt_elem_holder< Container >
Class used to manage underlying storage for views of coarse_map_reduce.
Maintains reference count and list of storage from destroyed instances to reduce allocation and increase locality.
- Template Parameters
-
Container | The container type held as the the underlying storage. |