Sequoia
Loading...
Searching...
No Matches
ScopedAllocationTestDiagnosticsUtilities.hpp
Go to the documentation of this file.
1
2// Copyright Oliver J. Rosten 2020. //
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
14#include "../RegularTestDiagnosticsUtilities.hpp"
15
16#include <vector>
17#include <string>
18
19namespace sequoia::testing
20{
21 template<template<class...> class OuterType, class InnerType>
23 {
24 using inner_type = InnerType;
25
26 using inner_allocator_type = typename InnerType::allocator_type;
27
28 using outer_allocator_type = typename inner_allocator_type::template rebind<inner_type>::other;
29
30 using allocator_type = std::scoped_allocator_adaptor<outer_allocator_type, inner_allocator_type>;
31
32 using beast = OuterType<inner_type, allocator_type>;
33 };
34}
Utilities for checking regular semantics.
Definition: ScopedAllocationTestDiagnosticsUtilities.hpp:23