gcc/libstdc++-v3/testsuite/20_util
Ville Voutilainen bf7818bfb0 Implement N4387, "Improving pair and tuple", and LWG 2367.
2015-06-30  Ville Voutilainen  <ville.voutilainen@gmail.com>

	Implement N4387, "Improving pair and tuple", and LWG 2367.

	* include/bits/stl_pair.h (_ConstructiblePair,
	_ImplicitlyConvertiblePair, _MoveConstructiblePair,
	_ImplicitlyMoveConvertiblePair): New.
	(pair()): Constrain it.
	(pair(const _T1&, const _T2&), pair(const pair<_U1, _U2>&),
	pair(_U1&&, const _T2&), pair(const _T1&, _U2&&), pair(_U1&&, _U2&&),
	pair(pair<_U1, _U2>&&)): Make conditionally explicit.
	* include/std/tuple (_TC, tuple::_TC2, tuple::TCC, tuple::TMC): New.
	(tuple()): Constrain it.
	(tuple(const _UElements&...), tuple(_UElements&&...),
	tuple(const tuple<_UElements...>&), tuple(tuple<_UElements...>&&),
	tuple(allocator_arg_t, const _Alloc&, const _UElements&...),
	tuple(allocator_arg_t, const _Alloc&, _UElements&&...),
	tuple(allocator_arg_t, const _Alloc&, const tuple<_UElements...>&),
	tuple(allocator_arg_t, const _Alloc&, tuple<_UElements...>&&),
	tuple(const pair<_U1, _U2>&), tuple(pair<_U1, _U2>&&),
	tuple(allocator_arg_t, const _Alloc&, const pair<_U1, _U2>&),
	tuple(allocator_arg_t, const _Alloc&, pair<_U1, _U2>&&)): Make
	conditionally explicit.
	* include/experimental/functional (__boyer_moore_array_base): Name
	array type explicitly instead of using an empty braced-init-list.
	* testsuite/20_util/pair/cons/explicit_construct.cc: New.
	* testsuite/20_util/pair/piecewise.cc: Use piecewise_construct.
	* testsuite/20_util/pair/requirements/dr2367.cc: New.
	* testsuite/20_util/tuple/cons/explicit_construct.cc: New.
	* testsuite/20_util/tuple/requirements/dr2367.cc: New.

From-SVN: r225189
2015-06-30 14:26:49 +01:00
..
add_const Update copyright years. 2015-01-05 13:33:28 +01:00
add_cv Update copyright years. 2015-01-05 13:33:28 +01:00
add_lvalue_reference Update copyright years. 2015-01-05 13:33:28 +01:00
add_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
add_rvalue_reference Update copyright years. 2015-01-05 13:33:28 +01:00
add_volatile Update copyright years. 2015-01-05 13:33:28 +01:00
addressof Update copyright years. 2015-01-05 13:33:28 +01:00
align Update copyright years. 2015-01-05 13:33:28 +01:00
aligned_storage Update copyright years. 2015-01-05 13:33:28 +01:00
aligned_union Update copyright years. 2015-01-05 13:33:28 +01:00
alignment_of Update copyright years. 2015-01-05 13:33:28 +01:00
allocator Update copyright years. 2015-01-05 13:33:28 +01:00
allocator_traits Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
auto_ptr std_c++0x_neg.cc: Add -std=c++98. 2015-05-09 00:50:30 -04:00
bad_function_call Update copyright years. 2015-01-05 13:33:28 +01:00
bind Update copyright years. 2015-01-05 13:33:28 +01:00
bool_constant status_cxx2017.xml: Update status tables. 2015-06-05 18:17:53 +01:00
common_type/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
conditional/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
decay/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
declval/requirements status_cxx2017.xml: Update status tables. 2015-06-05 18:17:53 +01:00
default_delete Update copyright years. 2015-01-05 13:33:28 +01:00
duration re PR libstdc++/65499 (Missing "using namespace literals::chrono_literals" in std::chrono) 2015-03-27 12:45:10 +00:00
duration_cast Update copyright years. 2015-01-05 13:33:28 +01:00
enable_if/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
enable_shared_from_this Update copyright years. 2015-01-05 13:33:28 +01:00
exchange Update copyright years. 2015-01-05 13:33:28 +01:00
extent Update copyright years. 2015-01-05 13:33:28 +01:00
forward Update copyright years. 2015-01-05 13:33:28 +01:00
function re PR libstdc++/65760 (invalid use of incomplete type with std::is_convertible<C, C>) 2015-04-29 17:07:47 +01:00
function_objects Update copyright years. 2015-01-05 13:33:28 +01:00
has_trivial_copy_assign re PR libstdc++/60132 (C++11: lack of is_trivially_copy_constructible) 2015-01-08 16:24:55 +00:00
has_trivial_copy_constructor re PR libstdc++/60132 (C++11: lack of is_trivially_copy_constructible) 2015-01-08 16:24:55 +00:00
has_trivial_default_constructor re PR libstdc++/60132 (C++11: lack of is_trivially_copy_constructible) 2015-01-08 16:24:55 +00:00
has_virtual_destructor Update copyright years. 2015-01-05 13:33:28 +01:00
hash Update copyright years. 2015-01-05 13:33:28 +01:00
headers synopsis.cc: Add _GLIBCXX14_CONSTEXPR. 2015-05-09 20:46:12 -04:00
integer_sequence Update copyright years. 2015-01-05 13:33:28 +01:00
integral_constant Update copyright years. 2015-01-05 13:33:28 +01:00
is_abstract Update copyright years. 2015-01-05 13:33:28 +01:00
is_arithmetic Update copyright years. 2015-01-05 13:33:28 +01:00
is_array Update copyright years. 2015-01-05 13:33:28 +01:00
is_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_base_of Update copyright years. 2015-01-05 13:33:28 +01:00
is_class Update copyright years. 2015-01-05 13:33:28 +01:00
is_compound Update copyright years. 2015-01-05 13:33:28 +01:00
is_const Update copyright years. 2015-01-05 13:33:28 +01:00
is_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_convertible Update copyright years. 2015-01-05 13:33:28 +01:00
is_copy_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_copy_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_default_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_destructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_empty Update copyright years. 2015-01-05 13:33:28 +01:00
is_enum Update copyright years. 2015-01-05 13:33:28 +01:00
is_final Update copyright years. 2015-01-05 13:33:28 +01:00
is_floating_point Update copyright years. 2015-01-05 13:33:28 +01:00
is_function Update copyright years. 2015-01-05 13:33:28 +01:00
is_fundamental Update copyright years. 2015-01-05 13:33:28 +01:00
is_integral Update copyright years. 2015-01-05 13:33:28 +01:00
is_literal_type Update copyright years. 2015-01-05 13:33:28 +01:00
is_lvalue_reference Update copyright years. 2015-01-05 13:33:28 +01:00
is_member_function_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_member_object_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_member_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_move_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_move_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_copy_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_copy_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_default_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_destructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_move_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_move_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_nothrow_swappable Add __is_nothrow_swappable and take it into use. 2015-06-05 15:44:26 +01:00
is_null_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_object Update copyright years. 2015-01-05 13:33:28 +01:00
is_pod Update copyright years. 2015-01-05 13:33:28 +01:00
is_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
is_polymorphic Update copyright years. 2015-01-05 13:33:28 +01:00
is_reference Update copyright years. 2015-01-05 13:33:28 +01:00
is_rvalue_reference Update copyright years. 2015-01-05 13:33:28 +01:00
is_same Update copyright years. 2015-01-05 13:33:28 +01:00
is_scalar Update copyright years. 2015-01-05 13:33:28 +01:00
is_signed Update copyright years. 2015-01-05 13:33:28 +01:00
is_standard_layout Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivial Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_copy_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_copy_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_copyable Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_default_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_destructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_move_assignable Update copyright years. 2015-01-05 13:33:28 +01:00
is_trivially_move_constructible Update copyright years. 2015-01-05 13:33:28 +01:00
is_union Update copyright years. 2015-01-05 13:33:28 +01:00
is_unsigned Update copyright years. 2015-01-05 13:33:28 +01:00
is_void Update copyright years. 2015-01-05 13:33:28 +01:00
is_volatile Update copyright years. 2015-01-05 13:33:28 +01:00
make_signed/requirements status_cxx2017.xml: Update status tables. 2015-06-05 18:17:53 +01:00
make_unsigned/requirements status_cxx2017.xml: Update status tables. 2015-06-05 18:17:53 +01:00
move Update copyright years. 2015-01-05 13:33:28 +01:00
move_if_noexcept Update copyright years. 2015-01-05 13:33:28 +01:00
owner_less Update copyright years. 2015-01-05 13:33:28 +01:00
pair Implement N4387, "Improving pair and tuple", and LWG 2367. 2015-06-30 14:26:49 +01:00
pointer_safety memory (pointer_safety, [...]): Define. 2015-05-01 12:02:18 +01:00
pointer_traits Update copyright years. 2015-01-05 13:33:28 +01:00
rank Update copyright years. 2015-01-05 13:33:28 +01:00
ratio Update copyright years. 2015-01-05 13:33:28 +01:00
raw_storage_iterator stl_raw_storage_iter.h (raw_storage_iterator::base()): Define (LWG 2454). 2015-05-13 14:54:46 +01:00
reference_wrapper Update copyright years. 2015-01-05 13:33:28 +01:00
remove_all_extents Update copyright years. 2015-01-05 13:33:28 +01:00
remove_const Update copyright years. 2015-01-05 13:33:28 +01:00
remove_cv Update copyright years. 2015-01-05 13:33:28 +01:00
remove_extent Update copyright years. 2015-01-05 13:33:28 +01:00
remove_pointer Update copyright years. 2015-01-05 13:33:28 +01:00
remove_reference Update copyright years. 2015-01-05 13:33:28 +01:00
remove_volatile Update copyright years. 2015-01-05 13:33:28 +01:00
result_of Update copyright years. 2015-01-05 13:33:28 +01:00
scoped_allocator Implement N4258 (Cleaning-up noexcept in the Library rev 3) 2015-06-26 21:10:24 +01:00
shared_ptr Use atomics in guard.cc. 2015-06-12 09:49:41 +00:00
specialized_algorithms re PR libstdc++/66078 (20_util/specialized_algorithms/uninitialized_copy/808590.cc fails with -std=c++11) 2015-05-20 18:11:03 +01:00
steady_clock Update copyright years. 2015-01-05 13:33:28 +01:00
system_clock Update copyright years. 2015-01-05 13:33:28 +01:00
time_point Update copyright years. 2015-01-05 13:33:28 +01:00
time_point_cast Update copyright years. 2015-01-05 13:33:28 +01:00
tuple Implement N4387, "Improving pair and tuple", and LWG 2367. 2015-06-30 14:26:49 +01:00
typeindex Update copyright years. 2015-01-05 13:33:28 +01:00
underlying_type/requirements Update copyright years. 2015-01-05 13:33:28 +01:00
unique_ptr Update copyright years. 2015-01-05 13:33:28 +01:00
uses_allocator Update copyright years. 2015-01-05 13:33:28 +01:00
void_t type_traits (void_t): Add. 2015-04-28 13:07:34 +01:00
weak_ptr Update copyright years. 2015-01-05 13:33:28 +01:00
rel_ops.cc Update copyright years. 2015-01-05 13:33:28 +01:00
temporary_buffer.cc Update copyright years. 2015-01-05 13:33:28 +01:00