15namespace sequoia::testing
20 bool PropagateCopy=
true,
21 bool PropagateMove=
false,
22 bool PropagateSwap=
false
33 = std::scoped_allocator_adaptor<
38 using bucket_type = std::vector<T, allocator_template<T>>;
45 bool PropagateCopy =
true,
46 bool PropagateMove =
false,
47 bool PropagateSwap =
false
53 std::vector<T, shared_counting_allocator<T, PropagateCopy, PropagateMove, PropagateSwap>>,
57 std::vector<std::size_t, shared_counting_allocator<std::size_t, PropagateCopy, PropagateMove, PropagateSwap>>>>;
60 template<
class Storage>
63 using allocator =
typename Storage::allocator_type;
67 allocator operator()(
const Storage& s)
const
69 return s.get_allocator();
73 template<
class Storage>
76 using allocator =
typename Storage::allocator_type;
80 allocator operator()(
const Storage& s)
const
82 return s.get_allocator();
86 template<
class Storage>
89 using allocator =
typename Storage::partitions_allocator_type;
93 allocator operator()(
const Storage& s)
const
95 return s.get_partitions_allocator();
Extension for checking allocations for types with regular semantics, see here.
Storage for partitioned data such that data within each partition is contiguous.
Definition: PartitionedData.hpp:63
Definition: PartitionedData.hpp:991
Definition: MonotonicSequence.hpp:248
Somewhat similar to std::allocator but logs (de)allocations via an counter which is shared upon copyi...
Definition: AllocationTestUtilities.hpp:41
Definition: AllocationCheckers.hpp:175
Definition: PartitionedDataAllocationTestingUtilities.hpp:62
Definition: PartitionedDataAllocationTestingUtilities.hpp:75
Definition: PartitionedDataAllocationTestingUtilities.hpp:25
Definition: PartitionedDataAllocationTestingUtilities.hpp:50
Definition: PartitionedDataAllocationTestingUtilities.hpp:88