NAME
SYNOPSIS
DESCRIPTION
ERRORS
NOTES
COPYRIGHT
SEE ALSO
hbw::allocator
Note: This is EXPERIMENTAL API. The functionality and the
header file itself can be changed (including non-backward
compatible changes) or removed.
#include <hbw_allocator.h>
Link with -lmemkind
hbw::allocator();
template <class U>hbw::allocator<T>::allocator(const hbw::allocator<U>&);
hbw::allocator<T>::~allocator()`
hbw::allocator<T>::pointer hbw::allocator<T>::address(hbw::allocator<T>::reference x);
hbw::allocator<T>::const_pointer hbw::allocator<T>::address(hbw::allocator<T>::const_reference x);
hbw::allocator<T>::pointer hbw::allocator<T>::allocate(hbw::allocator<T>::size_type n, const void * = 0);
void hbw::allocator<T>::deallocate(hbw::allocator<T>::pointer p, hbw::allocator<T>::size_type n);
hbw::allocator<T>::size_type hbw::allocator<T>::max_size();
void hbw::allocator<T>::construct(hbw::allocator<T>::pointer p, const hbw::allocator<T>::value_type& val);
void hbw::allocator<T>::destroy(hbw::allocator<T>::pointer p);
The hbw::allocator
All public member types and functions corresponds to standard library allocator concepts and definitions. The current implementation supports the C++03 standard.
Template arguments:
Note:
hbw::allocator<T>::pointer hbw::allocator<T>::allocate(hbw::allocator<T>::size_type n, const void * = 0)
hbw_malloc()
.
Throw std::bad_alloc
when:hbw::allocator<T>::deallocate(hbw::allocator<T>::pointer p, hbw::allocator<T>::size_type n)
The same as described in ERRORS section of hbwmalloc(3) man page.
The hbw::allocator<T>
behavior depends on hbwmalloc heap
management policy. To get and set the policy please use
hbw_get_policy()
and hbw_set_policy()
respectively.
Copyright (C) 2015 - 2022 Intel Corporation. All rights reserved.
hbwmalloc(3), numa(3), numactl(8), memkind(3)
The contents of this web site and the associated GitHub repositories are BSD-licensed open source.