* include/Makefile.am: Add new header. * include/Makefile.in: Regenerate. * include/bits/allocated_ptr.h (__allocated_ptr, __allocate_guarded): New RAII utilities for working with allocators. * include/bits/shared_ptr_base.h (_Sp_counted_deleter): Define __allocator_type typedef and use new __allocated_ptr type. (_Sp_counted_ptr_inplace): Likewise. (__shared_count::__shared_count, __shared_ptr::__shared_ptr): Use __allocate_guarded to to simplify exception handling. * include/experimental/any (any::_Manager_alloc::_S_alloc): Likewise. * include/std/future (_Result_alloc::_M_destroy): Likewise. (_Result_alloc::_S_allocate_result): Likewise. * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line number. * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise. * testsuite/20_util/shared_ptr/creation/no_rtti.cc: New. * testsuite/20_util/shared_ptr/creation/alloc.cc: Test allocator with fancy pointer. * testsuite/30_threads/promise/cons/alloc.cc: Likewise. From-SVN: r211996
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
39405.cc | Loading commit data... | |
43820_neg.cc | Loading commit data... | |
46910.cc | Loading commit data... | |
51365.cc | Loading commit data... | |
52924.cc | Loading commit data... | |
55123.cc | Loading commit data... | |
58659.cc | Loading commit data... | |
58839.cc | Loading commit data... | |
61036.cc | Loading commit data... | |
alias.cc | Loading commit data... | |
alloc.cc | Loading commit data... | |
alloc_min.cc | Loading commit data... | |
auto_ptr.cc | Loading commit data... | |
auto_ptr_neg.cc | Loading commit data... | |
constexpr.cc | Loading commit data... | |
copy.cc | Loading commit data... | |
default.cc | Loading commit data... | |
move.cc | Loading commit data... | |
noexcept_move_construct.cc | Loading commit data... | |
nullptr.cc | Loading commit data... | |
pointer.cc | Loading commit data... | |
unique_ptr.cc | Loading commit data... | |
unique_ptr_array.cc | Loading commit data... | |
unique_ptr_deleter.cc | Loading commit data... | |
unique_ptr_deleter_ref_1.cc | Loading commit data... | |
unique_ptr_deleter_ref_2.cc | Loading commit data... | |
unique_ptr_neg.cc | Loading commit data... | |
void_neg.cc | Loading commit data... | |
weak_ptr.cc | Loading commit data... | |
weak_ptr_expired.cc | Loading commit data... |