gcc/libstdc++-v3/testsuite
Ville Voutilainen 627a2f5923 Implement P0504R0 (Revisiting in-place tag types for any/optional/variant).
Implement P0504R0 (Revisiting in-place tag types for
any/optional/variant).
* include/std/any (any(_ValueType&& __value)): Constrain
the __is_in_place_type with the decayed type.
(make_any): Adjust to use the new tag type.
* include/std/utility (in_place_tag): Remove.
(in_place_t): Turn into a non-reference tag type.
(__in_place, __in_place_type, __in_place_index): Remove.
(in_place): Turn into an inline variable of non-reference
tag type.
(in_place<_Tp>): Remove.
(in_place_index<_Idx>): Remove.
(in_place_type_t): New.
(in_place_type): Turn into a variable template of non-reference
type.
(in_place_index_t): New.
(in_place_index): Turn into a variable template of non-reference
type.
* include/std/variant
(_Variant_storage(in_place_index_t<_Np>, _Args&&...)): Adjust to
use the new tag type.
(_Union(in_place_index_t<0>, _Args&&...)): Likewise.
(_Union(in_place_index_t<_Np>, _Args&&...)): Likewise.
(_Variant_base()): Likewise.
(variant(_Tp&&)): Likewise.
(variant(in_place_type_t<_Tp>, _Args&&...)): Likewise.
(variant(in_place_type_t<_Tp>, initializer_list<_Up>,
_Args&&...)): Likewise.
(variant(in_place_index_t<_Np>, _Args&&...)): Likewise.
(variant(in_place_index_t<_Np>, initializer_list<_Up>,
_Args&&...)): Likewise
(variant(allocator_arg_t, const _Alloc&)): Likewise.
(variant(allocator_arg_t, const _Alloc&, _Tp&&)): Likewise.
(variant(allocator_arg_t, const _Alloc&, in_place_type_t<_Tp>,
_Args&&...)): Likewise.
(variant(allocator_arg_t, const _Alloc&, in_place_type_t<_Tp>,
initializer_list<_Up>, _Args&&...)): Likewise.
(variant(allocator_arg_t, const _Alloc&, in_place_index_t<_Np>,
_Args&&...)): Likewise.
(variant(allocator_arg_t, const _Alloc&, in_place_index_t<_Np>,
initializer_list<_Up>, _Args&&...)): Likewise.
(emplace(_Args&&...)): Likewise.
(emplace(initializer_list<_Up>, _Args&&...)): Likewise.
* testsuite/20_util/any/cons/explicit.cc: Likewise.
* testsuite/20_util/any/cons/in_place.cc: Likewise.
* testsuite/20_util/any/requirements.cc: Add tests to
check that any is not constructible from the new in_place_type_t
of any value category.
* testsuite/20_util/in_place/requirements.cc: Adjust to
use the new tag type.
* testsuite/20_util/variant/compile.cc: Likewise.
* testsuite/20_util/variant/run.cc: Likewise.

From-SVN: r242401
2016-11-14 22:47:44 +02:00
..
17_intro
18_support Implement std::launder for C++17 2016-10-28 15:09:33 +01:00
19_diagnostics
20_util Implement P0504R0 (Revisiting in-place tag types for any/optional/variant). 2016-11-14 22:47:44 +02:00
21_strings Implement P0403R1, Literal suffixes for basic_string_view. 2016-11-13 22:54:27 +02:00
22_locale isblank.cc: Remove 'test' variables. 2016-10-17 00:02:57 +00:00
23_containers 57619.C: Rename to 57619.cc. 2016-10-17 13:32:32 +00:00
24_iterators container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
25_algorithms PR77994 Convert std::sample size argument to suitable type 2016-10-17 15:39:23 +01:00
26_numerics 1.cc: Remove 'test' variables. 2016-10-14 13:50:24 +00:00
27_io 12790-1.cc: Remove 'test' variables. 2016-10-17 22:24:50 +00:00
28_regex regex.h (regex_iterator::regex_iterator()): Define end() as _M_pregex == nullptr. 2016-11-09 22:11:32 +00:00
29_atomics container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
30_threads DR 374 - specialization in outer namespace 2016-11-13 01:51:23 -05:00
abi
backward container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
config
data
decimal container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
experimental Implement P0403R1, Literal suffixes for basic_string_view. 2016-11-13 22:54:27 +02:00
ext DR 374 - specialization in outer namespace 2016-11-13 01:51:23 -05:00
lib
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
tr1 DR 374 - specialization in outer namespace 2016-11-13 01:51:23 -05:00
tr2 container_access.cc: Remove 'test' variables. 2016-10-13 19:37:45 +00:00
util Fix error handling in copy_file and equivalent 2016-10-25 16:32:37 +01:00
Makefile.am
Makefile.in