Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
sort_allocation_test.cc File Reference

The sorts of lists when memory runs out. More...

#include <gtest/gtest.h>
#include "allocation_failure.H"
#include <algorithm>
#include <functional>
#include <random>
#include <utility>
#include <vector>
#include <ahSort.H>
#include <tpl_dynDlist.H>
#include <tpl_dynList.H>
#include <tpl_sort_utils.H>
Include dependency graph for sort_allocation_test.cc:

Go to the source code of this file.

Functions

 TEST_F (ListSortWithoutMemory, TheSortsInPlaceAllocateNothing)
 

Detailed Description

The sorts of lists when memory runs out.

This program replaces the global operator new, so that a test can make every allocation fail for a while. The sorts of a DynList and of a DynDlist that sort in place link their nodes again, and allocate nothing.

Definition in file sort_allocation_test.cc.

Function Documentation

◆ TEST_F()