Sequoia
Loading...
Searching...
No Matches
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
13
16
17namespace sequoia::testing
18{
19 template<class Storage>
21 {
22 using allocator_type = typename Storage::allocator_type;
24
25 [[nodiscard]]
26 allocator_type operator()(const Storage& s) const
27 {
28 return s.get_node_allocator();
29 }
30 };
31}
Client-facing utilities for performing allocation checks.
Concepts which are sufficiently general to appear in the sequoia namespace.
Definition: NodeStorageAllocationTestingUtilities.hpp:21