Sequoia
Loading...
Searching...
No Matches
OrderableMoveOnlyAllocationTestDiagnostics.hpp
Go to the documentation of this file.
1
2// Copyright Oliver J. Rosten 2021. //
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
14namespace sequoia::testing
15{
17 {
18 public:
19 using move_only_allocation_false_positive_test::move_only_allocation_false_positive_test;
20
21 [[nodiscard]]
22 std::filesystem::path source_file() const;
23
24 template<bool PropagateMove, bool PropagateSwap>
25 void test_allocation();
26
27 void run_tests();
28 private:
29
30 template<bool PropagateMove, bool PropagateSwap>
31 void test_semantics_allocations();
32 };
33}
Extension for checking allocations for types with move-only semantics.
Templated on the test_mode, this forms the basis of all allocation tests for move-only types.
Definition: MoveOnlyAllocationTestCore.hpp:273
Definition: OrderableMoveOnlyAllocationTestDiagnostics.hpp:17