Sequoia
Loading...
Searching...
No Matches
Tests
Maths
Graph
Components
Nodes
NodeStorageAllocationTestingUtilities.hpp
Go to the documentation of this file.
1
2
// Copyright Oliver J. Rosten 2019. //
3
// Distributed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. //
4
// (See accompanying file LICENSE.md or copy at //
5
// https://www.gnu.org/licenses/gpl-3.0.en.html) //
7
8
#pragma once
9
12
#include "
NodeStorageTestingUtilities.hpp
"
13
14
#include "
sequoia/TestFramework/AllocationCheckers.hpp
"
15
#include "
sequoia/Core/Meta/Concepts.hpp
"
16
17
namespace
sequoia::testing
18
{
19
template
<
class
Storage>
20
struct
node_storage_alloc_getter
21
{
22
using
allocator_type =
typename
Storage::allocator_type;
23
using
alloc_equivalence_class
=
allocation_equivalence_classes::container_of_values<allocator_type>
;
24
25
[[nodiscard]]
26
allocator_type operator()(
const
Storage& s)
const
27
{
28
return
s.get_node_allocator();
29
}
30
};
31
}
AllocationCheckers.hpp
Client-facing utilities for performing allocation checks.
Concepts.hpp
Concepts which are sufficiently general to appear in the sequoia namespace.
NodeStorageTestingUtilities.hpp
sequoia::testing::allocation_equivalence_classes::container_of_values
Definition:
AllocationCheckers.hpp:175
sequoia::testing::node_storage_alloc_getter
Definition:
NodeStorageAllocationTestingUtilities.hpp:21
Generated by
1.9.6