Sequoia
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
sequoia::testing::allocation_info< T, Getter > Class Template Reference

Class for use with a container possessing a (shared counting) allocator. More...

#include <AllocationCheckers.hpp>

Inheritance diagram for sequoia::testing::allocation_info< T, Getter >:
sequoia::testing::allocation_info_base< T, Getter >

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 >
 
- Public Types inherited from sequoia::testing::allocation_info_base< T, Getter >
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
 
- Public Member Functions inherited from sequoia::testing::allocation_info_base< T, Getter >
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

- Protected Member Functions inherited from sequoia::testing::allocation_info_base< T, Getter >
constexpr allocation_info_base (allocation_info_base &&) noexcept=default
 
constexpr allocation_info_baseoperator= (const allocation_info_base &)=default
 
constexpr allocation_info_baseoperator= (allocation_info_base &&) noexcept=default
 
constexpr Getter make_getter () const
 

Detailed Description

template<movable_comparable T, alloc_getter< T > Getter>
class sequoia::testing::allocation_info< T, Getter >

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.


The documentation for this class was generated from the following file: