Implement std::experimental::shared_ptr with array support
authorFan You <youfan.noey@gmail.com>
Fri, 13 Nov 2015 11:05:28 +0000 (11:05 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 13 Nov 2015 11:05:28 +0000 (11:05 +0000)
commit930d560203039875c4da07a01f579f56f5f2c636
treeeb90f7cf60efb62b0d81e4ce24af95491ce9aff9
parent755fdaab8ed0d1c1f954c21a2a4a8d6830165bda
Implement std::experimental::shared_ptr with array support

2015-11-13  Fan You  <youfan.noey@gmail.com>
    Jonathan Wakely  <jwakely@redhat.com>

* include/Makefile.am: Add new header.
* include/Makefile.in: Regenerate.
* include/experimental/bits/shared_ptr.h: New.
* include/experimental/memory: Include new header.
* testsuite/experimental/memory/shared_ptr/assign/assign.cc: New.
* testsuite/experimental/memory/shared_ptr/cast/cast.cc: New.
* testsuite/experimental/memory/shared_ptr/comparison/comparison.cc:
New.
* testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc: New.
* testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc: New.
* testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc: New.
* testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc: New.
* testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc: New.
* testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc: New.
* testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc: New.
* testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc:
New.
* testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc: New.
* testsuite/experimental/memory/shared_ptr/dest/dest.cc: New.
* testsuite/experimental/memory/shared_ptr/modifiers/reset.cc: New.
* testsuite/experimental/memory/shared_ptr/modifiers/swap.cc: New.
* testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc:
New.
* testsuite/experimental/memory/shared_ptr/observers/operators.cc:
New.
* testsuite/experimental/memory/shared_ptr/observers/owner_before.cc:
New.
* testsuite/experimental/memory/shared_ptr/observers/use_count.cc: New.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r230300
24 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/experimental/bits/shared_ptr.h [new file with mode: 0644]
libstdc++-v3/include/experimental/memory
libstdc++-v3/testsuite/experimental/memory/shared_ptr/assign/assign.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cast/cast.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/comparison/comparison.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alias_ctor.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/alloc_ctor.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/copy_ctor_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/default_ctor.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/move_ctor.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/pointer_ctor.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/cons/weak_ptr_ctor.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/dest/dest.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/reset.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/modifiers/swap.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/bool_conv.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/operators.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/owner_before.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory/shared_ptr/observers/use_count.cc [new file with mode: 0644]