Sequoia
|
Class for use with a container possessing a (shared counting) allocator. More...
#include <AllocationCheckers.hpp>
Public Types | |
using | value_type = T |
using | allocator_type = typename base_t::allocator_type |
using | predictions_type = type_to_allocation_predictions_t< T > |
using | inner_predictions_type = type_to_inner_allocation_predictions_t< T > |
![]() | |
using | allocator_type = std::invoke_result_t< Getter, T > |
Public Member Functions | |
constexpr | allocation_info (Getter allocGetter, const predictions_type &predictions) |
constexpr | allocation_info (Getter allocGetter, const inner_predictions_type &predictions) |
constexpr const predictions_type & | get_predictions () const noexcept |
![]() | |
constexpr | allocation_info_base (Getter allocGetter) |
constexpr | allocation_info_base (const allocation_info_base &)=default |
int | count (const T &c) const noexcept |
template<class... Args> | |
allocator_type | make_allocator (Args &&... args) const |
allocator_type | allocator (const T &c) const |
Additional Inherited Members | |
![]() | |
constexpr | allocation_info_base (allocation_info_base &&) noexcept=default |
constexpr allocation_info_base & | operator= (const allocation_info_base &)=default |
constexpr allocation_info_base & | operator= (allocation_info_base &&) noexcept=default |
constexpr Getter | make_getter () const |
Class for use with a container possessing a (shared counting) allocator.
By inheriting from allocation_info_base, this class is able to acquire a copy of an allocator from a container. On top of this, the class holds predictions for the various allocation events.