Jonathan Wakely
8be17e2ac7
libstdc++: Prefer const T to std::add_const_t<T>
...
For any typedef-name or template parameter, T, add_const_t<T> is
equivalent to T const, so we can avoid instantiating the std::add_const
class template and just say T const (or const T).
This isn't true for a non-typedef like int&, where int& const would be
ill-formed, but we shouldn't be using add_const_t<int&> anyway, because
we know what that type is.
The only place we need to continue using std::add_const is in the
std::bind implementation where it's used as a template template
parameter to be applied as a metafunction elsewhere.
libstdc++-v3/ChangeLog:
* include/bits/stl_iterator.h (__iter_to_alloc_t): Replace
add_const_t with const-qualifier.
* include/bits/utility.h (tuple_element<N, cv T>): Likewise for
all cv-qualifiers.
* include/std/type_traits (add_const, add_volatile): Replace
typedef-declaration with using-declaration.
(add_cv): Replace add_const and add_volatile with cv-qualifiers.
* include/std/variant (variant_alternative<N, cv T>): Replace
add_const_t, add_volatile_t and add_cv_t etc. with cv-qualifiers.
2022-07-12 09:13:45 +01:00
..
2022-05-13 13:32:22 +01:00
2022-01-03 10:42:10 +01:00
2022-05-13 13:32:22 +01:00
2022-01-03 10:42:10 +01:00
2022-06-14 21:07:47 +01:00
2022-05-13 13:32:22 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-02-10 10:14:36 -08:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-06-16 20:20:40 +01:00
2022-06-14 21:07:47 +01:00
2022-02-02 16:30:51 +00:00
2022-01-03 10:42:10 +01:00
2022-05-13 13:32:22 +01:00
2022-07-07 17:38:14 +01:00
2022-01-03 10:42:10 +01:00
2022-06-27 11:08:16 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-06-14 21:07:47 +01:00
2022-01-03 10:42:10 +01:00
2022-01-27 23:31:03 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-06 14:56:48 +00:00
2022-02-04 19:51:26 +00:00
2022-02-04 19:51:26 +00:00
2022-07-01 11:50:18 +01:00
2022-06-27 11:08:16 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-05-26 10:44:45 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-06-15 20:21:52 +02:00
2022-06-15 20:21:52 +02:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-05-17 20:50:31 +01:00
2022-01-25 21:05:16 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-05-12 18:04:01 +01:00
2022-03-21 11:02:04 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-05-19 23:38:23 +01:00
2022-01-03 10:42:10 +01:00
2022-05-13 13:32:21 +01:00
2022-06-27 11:08:16 +01:00
2022-01-21 16:07:34 +00:00
2022-06-14 21:07:47 +01:00
2022-01-21 16:07:34 +00:00
2022-05-13 13:32:22 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-05-13 13:32:22 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-05-06 23:54:09 +01:00
2022-01-21 16:07:34 +00:00
2022-04-15 14:41:14 -04:00
2022-05-26 10:44:45 +01:00
2022-02-22 09:37:58 -05:00
2022-02-22 09:37:58 -05:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-14 11:27:50 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-03-01 15:25:39 +00:00
2022-01-05 13:47:00 +00:00
2022-05-13 13:32:22 +01:00
2022-05-13 13:32:22 +01:00
2022-01-03 10:42:10 +01:00
2022-01-05 13:47:01 +00:00
2022-01-03 10:42:10 +01:00
2022-01-05 13:47:00 +00:00
2022-05-13 13:32:22 +01:00
2022-01-05 13:47:01 +00:00
2022-01-03 10:42:10 +01:00
2022-05-13 13:32:22 +01:00
2022-01-25 21:05:16 +00:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-05-06 14:43:39 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-05-13 13:32:23 +01:00
2022-05-13 20:40:05 +01:00
2022-05-13 13:32:22 +01:00
2022-01-21 16:07:34 +00:00
2022-02-17 23:44:25 +00:00
2022-01-14 10:14:25 +00:00
2022-01-05 13:47:02 +00:00
2022-01-21 16:07:34 +00:00
2022-05-26 10:44:45 +01:00
2022-05-26 10:44:45 +01:00
2022-01-14 11:27:50 +00:00
2022-07-12 09:13:45 +01:00
2022-01-03 10:42:10 +01:00
2022-01-21 16:07:34 +00:00
2022-01-14 11:27:50 +00:00
2022-01-03 10:42:10 +01:00
2022-05-13 13:32:22 +01:00
2022-05-13 13:32:22 +01:00
2022-01-03 10:42:10 +01:00
2022-01-14 11:27:50 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-19 00:58:25 +00:00
2022-01-21 16:07:34 +00:00
2022-01-03 10:42:10 +01:00
2022-04-14 11:02:37 +01:00
2022-01-14 11:27:50 +00:00
2022-01-14 11:27:50 +00:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-03-10 21:04:01 +00:00
2022-01-03 10:42:10 +01:00
2022-05-13 13:32:23 +01:00
2022-05-13 13:32:23 +01:00
2022-05-26 10:44:45 +01:00
2022-05-26 10:44:45 +01:00
2022-03-08 12:53:04 +00:00
2022-01-03 10:42:10 +01:00
2022-07-12 09:13:45 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00
2022-01-03 10:42:10 +01:00