gcc/libstdc++-v3/include/experimental
Jonathan Wakely 7956c508dd PR libstdc++/70940 make pmr::resource_adaptor return aligned memory
PR libstdc++/70940
	* include/experimental/memory_resource (__resource_adaptor_common):
	New base class.
	(__resource_adaptor_common::_AlignMgr): Helper for obtaining aligned
	pointer from unaligned, and vice versa.
	(__resource_adaptor_imp::do_allocate): Use _AlignMgr to adjust
	allocated pointer to meet alignment request.
	(__resource_adaptor_imp::do_deallocate): Use _AlignMgr to retrieve
	original pointer for deallocation.
	(__resource_adaptor_imp::do_is_equal): Reformat.
	(__resource_adaptor_imp::_S_aligned_size): Remove.
	(__resource_adaptor_imp::_S_supported): Remove.
	(new_delete_resource): Use __gnu_cxx::new_allocator.
	* testsuite/experimental/memory_resource/resource_adaptor.cc: Test
	extended alignments and use debug_allocator to check for matching
	allocate/deallocate pairs.

From-SVN: r261849
2018-06-21 15:01:11 +01:00
..
bits PR libstdc++/78870 support std::filesystem on Windows 2018-05-31 20:20:24 +01:00
algorithm
any
array
chrono
deque
filesystem
forward_list
functional
iterator
list
map
memory
memory_resource PR libstdc++/70940 make pmr::resource_adaptor return aligned memory 2018-06-21 15:01:11 +01:00
numeric
optional
propagate_const
random
ratio
regex
set
source_location
string
string_view
system_error
tuple
type_traits
unordered_map
unordered_set
utility
vector