gcc/libstdc++-v3/testsuite
Ville Voutilainen f3df0b3cde Reduce the size of variant, it doesn't need an index of type size_t internally.
Reduce the size of variant, it doesn't need an index of
type size_t internally.
* include/std/variant (parse_numbers.h): New include.
(__select_index): New.
(_Variant_storage<false, _Types...>::_M_reset_impl): Use
_index_type for comparison with variant_npos.
(_Variant_storage<false, _Types...>::__index_type): New.
(_Variant_storage<false, _Types...>::_M_index): Change the
type from size_t to __index_type.
(_Variant_storage<true, _Types...>::__index_type): New.
(_Variant_storage<true, _Types...>::_M_index): Change the
type from size_t to __index_type.
(_Variant_base::_M_valid): Use _Storage::__index_type
for comparison with variant_npos.
(variant::index): Use _Base::_Storage::__index_type
for comparison with variant_npos.
* testsuite/20_util/variant/index_type.cc: New.

From-SVN: r244309
2017-01-11 13:23:43 +02:00
..
17_intro Update copyright years. 2017-01-01 13:07:43 +01:00
18_support Adjust effective target selector to fix C++17 FAIL 2017-01-10 17:44:42 +00:00
19_diagnostics Update copyright years. 2017-01-01 13:07:43 +01:00
20_util Reduce the size of variant, it doesn't need an index of type size_t internally. 2017-01-11 13:23:43 +02:00
21_strings Add more tests for std::basic_string::find 2017-01-06 21:22:40 +00:00
22_locale Update copyright years. 2017-01-01 13:07:43 +01:00
23_containers PR77528 add default constructors for container adaptors 2017-01-10 17:30:20 +00:00
24_iterators Update copyright years. 2017-01-01 13:07:43 +01:00
25_algorithms PR78991 make __gnu_cxx::__ops constructors explicit 2017-01-06 12:33:58 +00:00
26_numerics Update copyright years. 2017-01-01 13:07:43 +01:00
27_io Update copyright years. 2017-01-01 13:07:43 +01:00
28_regex Update copyright years. 2017-01-01 13:07:43 +01:00
29_atomics Update copyright years. 2017-01-01 13:07:43 +01:00
30_threads Define testsuite macro for correct thread_local destructors 2017-01-09 13:06:03 +00:00
abi Update copyright years. 2017-01-01 13:07:43 +01:00
backward Update copyright years. 2017-01-01 13:07:43 +01:00
config Update copyright years. 2017-01-01 13:07:43 +01:00
data
decimal Update copyright years. 2017-01-01 13:07:43 +01:00
experimental Update copyright years. 2017-01-01 13:07:43 +01:00
ext Update copyright years. 2017-01-01 13:07:43 +01:00
lib Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-abi Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-dg Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-prettyprinters Make Python printers and xmethods work with versioned namespace 2017-01-10 12:38:42 +00:00
libstdc++-xmethods Update copyright years. 2017-01-01 13:07:43 +01:00
performance Update copyright years. 2017-01-01 13:07:43 +01:00
special_functions Update copyright years. 2017-01-01 13:07:43 +01:00
tr1 Update copyright years. 2017-01-01 13:07:43 +01:00
tr2 Update copyright years. 2017-01-01 13:07:43 +01:00
util Define testsuite macro for correct thread_local destructors 2017-01-09 13:06:03 +00:00
Makefile.am Update copyright years. 2017-01-01 13:07:43 +01:00
Makefile.in Build libgo with -Wa,-nH if possible (PR go/78978) [non-libgo parts] 2017-01-06 14:33:47 +00:00