Louis Dionne
d05ab119e1
[libc++] Remove redundant and somewhat confusing assertions around advance() ( #133276 )
...
The std::advance function has a clear precondition that it can only be
called with a negative distance when a bidirectional iterator is used.
However, prev() and next() don't have such preconditions explicitly,
they inherit it from calling advance().
This patch removes assertions in prev() and next() that were duplicates
of similar ones in advance(), and removes a copy-pasted comment that was
trying to justify the use of _LIBCPP_ASSERT_PEDANTIC but IMO is creating
confusion with little benefit.
2025-05-06 15:44:26 -04:00
..
2025-04-19 07:12:43 -04:00
2025-04-13 11:01:17 +02:00
2025-05-01 15:02:17 +02:00
2025-04-18 20:57:05 -04:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-03-06 10:22:18 +01:00
2025-04-08 18:16:18 +02:00
2025-05-05 14:19:13 -07:00
2025-04-09 23:47:57 +02:00
2025-03-27 11:34:38 +01:00
2025-05-06 09:53:56 +02:00
2024-10-12 09:49:52 +02:00
2025-03-27 11:34:38 +01:00
2025-01-08 11:12:59 -05:00
2025-03-27 15:14:17 +01:00
2025-03-25 15:58:24 +01:00
2025-04-06 10:50:55 +01:00
2025-04-11 15:35:58 +02:00
2025-04-25 10:45:46 +02:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-05-06 15:44:26 -04:00
2025-04-04 11:48:46 -04:00
2025-03-24 07:30:45 +01:00
2025-04-14 17:33:57 -04:00
2025-04-14 17:33:57 -04:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-03-27 11:34:38 +01:00
2025-04-05 13:46:11 +02:00
2025-04-09 23:47:57 +02:00
2025-02-10 21:19:46 +01:00
2025-04-09 23:47:57 +02:00
2025-04-24 10:29:59 +02:00
2025-04-13 08:40:21 -04:00
2025-04-25 10:43:13 +02:00
2025-01-10 15:21:58 -05:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-05-01 15:01:43 +02:00
2025-04-29 22:00:16 +03:00
2025-04-09 23:47:57 +02:00
2025-05-03 08:39:48 +02:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2024-09-17 11:22:27 -04:00
2025-04-18 20:57:05 -04:00
2025-04-11 12:07:04 +02:00
2024-11-06 10:39:19 +01:00
2025-04-18 20:57:05 -04:00
2025-04-09 23:47:57 +02:00
2025-02-18 12:12:23 +01:00
2025-04-09 23:47:57 +02:00
2025-02-27 17:47:34 +01:00
2025-04-24 14:30:28 -04:00
2025-04-14 18:55:01 +02:00
2025-04-19 07:12:43 -04:00
2025-04-09 23:47:57 +02:00
2025-04-19 07:12:43 -04:00
2025-01-17 14:22:40 -05:00
2025-04-09 15:00:46 +02:00
2025-04-09 15:00:46 +02:00
2025-04-19 07:12:43 -04:00
2024-12-21 13:01:48 +01:00
2025-01-08 11:12:59 -05:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2025-04-09 15:00:46 +02:00
2025-03-21 18:02:32 +01:00
2024-12-21 13:01:48 +01:00
2025-01-08 11:12:59 -05:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2025-04-29 08:46:06 +02:00
2024-12-21 13:01:48 +01:00
2025-04-19 07:12:43 -04:00
2025-04-09 15:00:46 +02:00
2025-04-09 23:47:57 +02:00
2024-12-21 13:01:48 +01:00
2025-04-09 15:00:46 +02:00
2025-04-19 07:12:43 -04:00
2025-04-09 15:00:46 +02:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2025-01-08 11:12:59 -05:00
2024-12-21 13:01:48 +01:00
2025-01-08 11:12:59 -05:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2025-01-08 11:12:59 -05:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2025-02-27 17:47:34 +01:00
2024-12-21 13:01:48 +01:00
2025-04-09 23:47:57 +02:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2025-04-09 15:00:46 +02:00
2025-04-09 15:00:46 +02:00
2024-12-21 13:01:48 +01:00
2025-04-09 15:00:46 +02:00
2025-01-25 18:30:00 +00:00
2025-04-06 10:50:55 +01:00
2024-12-21 13:01:48 +01:00
2025-04-09 15:00:46 +02:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-01-10 14:14:14 -05:00
2025-04-13 11:01:17 +02:00
2025-04-09 23:47:57 +02:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2025-04-19 07:12:43 -04:00
2025-04-09 23:47:57 +02:00
2024-12-21 13:01:48 +01:00
2025-04-09 23:47:57 +02:00
2025-03-01 12:29:21 +01:00
2025-04-09 15:00:46 +02:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-04-19 07:12:43 -04:00
2025-04-09 23:47:57 +02:00
2024-12-21 13:01:48 +01:00
2025-04-14 17:33:57 -04:00
2025-04-14 17:33:57 -04:00
2025-04-09 15:00:46 +02:00
2025-04-29 08:46:06 +02:00
2025-04-09 23:47:57 +02:00
2024-12-21 13:01:48 +01:00
2025-04-09 15:00:46 +02:00
2025-04-05 13:46:11 +02:00
2025-04-09 23:47:57 +02:00
2024-12-21 13:01:48 +01:00
2025-04-09 15:00:46 +02:00
2025-04-09 23:47:57 +02:00
2024-12-21 13:01:48 +01:00
2025-04-09 15:00:46 +02:00
2025-04-09 23:47:57 +02:00
2025-04-11 12:07:04 +02:00
2025-04-09 23:47:57 +02:00
2025-04-09 15:00:46 +02:00
2025-04-09 23:47:57 +02:00
2025-04-09 15:00:46 +02:00
2025-04-09 15:00:46 +02:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-01-17 14:22:40 -05:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2024-12-23 07:33:26 -08:00
2024-12-23 07:33:26 -08:00
2025-04-09 15:00:46 +02:00
2025-04-19 07:12:43 -04:00
2025-04-25 10:43:13 +02:00
2025-04-19 07:12:43 -04:00
2024-12-21 13:01:48 +01:00
2025-04-04 11:48:46 -04:00
2025-04-09 23:47:57 +02:00
2025-04-19 07:12:43 -04:00
2024-12-21 13:01:48 +01:00
2024-12-21 13:01:48 +01:00
2025-04-09 23:47:57 +02:00
2025-04-29 08:46:06 +02:00
2025-04-09 23:47:57 +02:00
2025-03-27 11:34:38 +01:00
2024-12-21 13:01:48 +01:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-03-25 18:31:57 +01:00
2025-04-09 23:47:57 +02:00
2025-04-09 23:47:57 +02:00
2025-04-19 07:12:43 -04:00
2025-04-14 17:33:57 -04:00
2024-12-23 07:33:26 -08:00
2024-12-21 13:01:48 +01:00