|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
What a container declares noexcept does not allocate. More...
#include <gtest/gtest.h>#include "allocation_failure.H"#include <ah-mapping.H>#include <bitArray.H>#include <htlist.H>#include <tpl_array.H>#include <tpl_arrayHeap.H>#include <tpl_arrayQueue.H>#include <tpl_arrayStack.H>#include <tpl_avl.H>#include <tpl_avlRk.H>#include <tpl_binTree.H>#include <tpl_dynArray.H>#include <tpl_dynArrayHeap.H>#include <tpl_dynBinHeap.H>#include <tpl_dynDlist.H>#include <tpl_dynLhash.H>#include <tpl_dynListQueue.H>#include <tpl_dynListStack.H>#include <tpl_dynMapOhash.H>#include <tpl_dynMapTree.H>#include <tpl_dynMat.H>#include <tpl_dynSetHash.H>#include <tpl_dynSetTree.H>#include <tpl_dynSkipList.H>#include <tpl_flat_map.H>#include <tpl_flat_set.H>#include <tpl_graph.H>#include <tpl_hRbTree.H>#include <tpl_hRbTreeRk.H>#include <tpl_hash.H>#include <tpl_memArray.H>#include <tpl_multi_polynomial.H>#include <tpl_odhash.H>#include <tpl_olhash.H>#include <tpl_rand_tree.H>#include <tpl_random_queue.H>#include <tpl_rb_tree.H>#include <tpl_rbRk.H>#include <tpl_small_vector.H>#include <tpl_splay_tree.H>#include <tpl_splay_treeRk.H>#include <tpl_tdRbTree.H>#include <tpl_tdRbTreeRk.H>#include <tpl_treap.H>#include <tpl_treapRk.H>#include <array>#include <cstddef>#include <cstdlib>#include <functional>#include <memory>#include <optional>#include <string>#include <type_traits>#include <utility>Go to the source code of this file.
Classes | |
| struct | NoexceptAllocation |
Macros | |
| #define | TEST_UNDER_A_SANITIZER 0 |
| #define | TEST_SEES_THE_HEAP 0 |
| #define | CHECK(Container, how) |
| #define | CHECK_FIXED(Container, how) |
| #define | CHECK(Tree) |
| #define | CHECK_SET(Set, out) |
| #define | CHECK_MAP(Map, out) |
Functions | |
| TEST_F (NoexceptAllocation, TheItemAllocatesWhenItIsBuiltByDefaultAndNotWhenItMoves) | |
| TEST_F (NoexceptAllocation, TheItemWithoutMoveAllocatesWhenItIsMoved) | |
| TEST_F (NoexceptAllocation, Sequences) | |
| TEST_F (NoexceptAllocation, SetsAndMapsOnTrees) | |
| TEST_F (NoexceptAllocation, TheMovesOfTheSetsOnTreesThatAreChecked) | |
| TEST_F (NoexceptAllocation, SetsAndMapsOnHashTables) | |
| TEST_F (NoexceptAllocation, TheMovesOfTheLinearTablesAndOfTheRandomSetThatAreChecked) | |
| TEST_F (NoexceptAllocation, AMapThatTookAnotherHashFunctionMovesWithoutAllocating) | |
| TEST_F (NoexceptAllocation, AMoveAssignmentOfATableOfChainedListsCopiesNoHashFunction) | |
| TEST_F (NoexceptAllocation, Graphs) | |
| TEST_F (NoexceptAllocation, WhatKeepsADynArrayTakesNoMemoryUntilItWrites) | |
What a container declares noexcept does not allocate.
Definition in file noexcept_allocation_test.cc.
| #define CHECK | ( | Container, | |
| how | |||
| ) |
| #define CHECK | ( | Tree | ) |
| #define CHECK_FIXED | ( | Container, | |
| how | |||
| ) |
| #define CHECK_MAP | ( | Map, | |
| out | |||
| ) |
| #define CHECK_SET | ( | Set, | |
| out | |||
| ) |
| #define TEST_SEES_THE_HEAP 0 |
Definition at line 137 of file noexcept_allocation_test.cc.
| #define TEST_UNDER_A_SANITIZER 0 |
Definition at line 134 of file noexcept_allocation_test.cc.
| TEST_F | ( | NoexceptAllocation | , |
| AMapThatTookAnotherHashFunctionMovesWithoutAllocating | |||
| ) |
Definition at line 598 of file noexcept_allocation_test.cc.
References Aleph::fill(), OhashCommon< HashTbl, Key >::insert(), m, and Aleph::ODhashTable< Key, Cmp >::set_hash_fct().
| TEST_F | ( | NoexceptAllocation | , |
| AMoveAssignmentOfATableOfChainedListsCopiesNoHashFunction | |||
| ) |
Definition at line 630 of file noexcept_allocation_test.cc.
References Aleph::DynHashTable< Key, HashTable, Cmp >::contains(), Aleph::copy(), Aleph::DynHashTable< Key, HashTable, Cmp >::insert(), Aleph::GenLhashTable< Key, BucketType, Cmp >::search(), and Aleph::GenLhashTable< Key, BucketType, Cmp >::set_hash_fct().
| TEST_F | ( | NoexceptAllocation | , |
| Graphs | |||
| ) |
Definition at line 665 of file noexcept_allocation_test.cc.
References w.
| TEST_F | ( | NoexceptAllocation | , |
| Sequences | |||
| ) |
Definition at line 517 of file noexcept_allocation_test.cc.
References Aleph::BitArray::push().
| TEST_F | ( | NoexceptAllocation | , |
| SetsAndMapsOnHashTables | |||
| ) |
Definition at line 565 of file noexcept_allocation_test.cc.
| TEST_F | ( | NoexceptAllocation | , |
| SetsAndMapsOnTrees | |||
| ) |
Definition at line 526 of file noexcept_allocation_test.cc.
| TEST_F | ( | NoexceptAllocation | , |
| TheItemAllocatesWhenItIsBuiltByDefaultAndNotWhenItMoves | |||
| ) |
Definition at line 483 of file noexcept_allocation_test.cc.
| TEST_F | ( | NoexceptAllocation | , |
| TheItemWithoutMoveAllocatesWhenItIsMoved | |||
| ) |
Definition at line 500 of file noexcept_allocation_test.cc.
| TEST_F | ( | NoexceptAllocation | , |
| TheMovesOfTheLinearTablesAndOfTheRandomSetThatAreChecked | |||
| ) |
Definition at line 579 of file noexcept_allocation_test.cc.
| TEST_F | ( | NoexceptAllocation | , |
| TheMovesOfTheSetsOnTreesThatAreChecked | |||
| ) |
Definition at line 547 of file noexcept_allocation_test.cc.
| TEST_F | ( | NoexceptAllocation | , |
| WhatKeepsADynArrayTakesNoMemoryUntilItWrites | |||
| ) |
Definition at line 755 of file noexcept_allocation_test.cc.
References Aleph::copy(), Aleph::DynArray< T >::exist(), and Aleph::DynArray< T >::touch().