Dennis
5cd77a6e32
User hyperlinks to refer to bugzilla issues ( #8766 )
2023-06-16 14:45:44 +03:00
Mathis Beer
2f6b2efaf7
Change struct Rebindable to just use cast()
if this is sufficient.
...
This works better at compiletime.
2023-04-19 22:59:43 +00:00
Mathis Beer
b818901e63
Fix issue 22786 (immutable element in maxElement) by always using Rebindable.
2023-04-19 22:59:43 +00:00
Nick Treleaven
01a12f919e
[std.algorithm.searching] Don't instantiate template pred in all
and any
constraints ( #8715 )
...
Fixes Issue 23769 - Lambda isn't a unary predicate for lambda that
doesn't compile.
2023-04-10 19:10:18 +03:00
Nick Treleaven
72da991685
[std.algorithm.searching] Fix 2 typos in docs ( #8728 )
2023-03-31 15:38:47 +03:00
james
bc5126469e
Fix Issue 14542 - std.algorithm.searching.until does not handle range sentinels nicely
2022-09-23 16:44:42 +02:00
Adam D. Ruppe
8ed1c4095a
wrong example - the paren char args are required
2022-08-01 10:08:24 +00:00
Iulia Dumitru
d0c52225b4
Fix issue 18735 all versions of find and canfind should identify usage of predicate
2022-07-24 02:55:44 +00:00
João Lourenço
f25b3fc78e
Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool ( #8330 )
...
Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool
Signed-off-by: Razvan Nitu <RazvanN7@users.noreply.github.com>
Merged-on-behalf-of: Razvan Nitu <RazvanN7@users.noreply.github.com>
2021-12-10 15:16:45 +00:00
Julian Fondren
dc2bf7901f
Fix issue 20554 - std.algorithm.searching.all 's static assert produces a garbled error message
2021-09-21 20:25:26 -05:00
Paul Backus
d08548e925
Fix Issue 22297 - Behavior of minElement and maxElement with empty range is undocumented
2021-09-10 17:57:46 +00:00
vladchicos
68dab0e2e5
Fix Issue 19727 - std.algorithm.endsWith fails to compile while startsWith succeeds.
2021-08-12 05:09:14 +03:00
Walter Bright
3301a20c16
fix Issue 22146 - std.algorithm.searching.findAdjacent() can fall off end of function
2021-07-26 14:37:43 +00:00
João Lourenço
882cf3df43
std.algorithm: improve findSplit methods module documentation
...
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
2021-06-07 12:07:47 +01:00
nordlow
5d31a68082
Break line to please maximum line length enforced by style checker
2021-05-17 12:04:06 +02:00
nordlow
6bef53dd1a
Annotate std/algorithm/searching.d to please dlang/dmd#12520 #8076
2021-05-17 00:02:04 +02:00
Nathan Sashihara
a23fa4ed06
Fix issue #21702 - avoid quadratic template expansion in constraints of multiple search term versions of std.algorithm.searching.startsWith & endsWith
2021-04-25 20:43:24 +08:00
berni44
b2019ebab0
Narrow imports of std.math in the rest of phobos.
2021-04-21 03:00:57 +02:00
Paul Backus
f94815142a
Fix incorrect usage of "verify" in docs
...
Other documentation in std.algorithm.searching consistently uses
"satisfy" for predicates.
2021-03-10 11:23:28 -05:00
Paul Backus
97fe720085
Document result of 'all' and 'any' on empty range
2021-03-10 11:21:24 -05:00
Razvan Nitu
44e47a03d2
Merge pull request #7807 from BorisCarvajal/bug21651_changes
...
Remove a few uses of fully qualified names that rely on a DMD bug
2021-02-23 00:33:17 +08:00
Boris Carvajal
276053dd07
Remove a few uses of fully qualified names that rely on a DMD bug
2021-02-22 08:16:13 -03:00
Bastiaan Veelo
e2a2c54927
Fix copy-paste error in documentation.
2021-02-22 11:15:05 +01:00
Geod24
b6a9cd8c64
Fix broken link in minElement doc
2020-11-28 20:37:54 +01:00
Nathan Sashihara
453faadf5b
Replace is(Unqual!T == Unqual!U) with is(immutable T == immutable U) for speed & memory usage
2020-08-03 15:07:32 +02:00
Geod24
04f3979317
Replace 'Issue XXX' with Bugzilla links
...
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Bernhard Seckinger
509e657872
Fix Issue 11013 - ignoring variable inside the predicate of findSplitBefore
2019-11-14 17:32:08 +01:00
Bernhard Seckinger
14e5d1bce2
More min and max are not NaN aware.
2019-10-22 19:56:28 +02:00
Bernhard Seckinger
0320d88c3a
Fix Issue 10448 - min and max are not NaN aware
2019-10-21 11:40:09 +02:00
JinShil
0de2d66760
Replace hash_t
and sizediff_t
with size_t
and ptrdiff_t
2019-08-31 04:39:57 +09:00
Martin Kinkelin
7653e97a32
Rewrite dubious refRange() shortcuts in unittests
...
As preparation for dlang/dmd#10124 , which makes elements of array
literals rvalues.
2019-08-15 18:54:08 +02:00
Robert Schadek
d9cf38b3a0
added a lost space
2019-06-25 11:50:35 +01:00
Robert Schadek
31d5b848b0
Adds asserts messages
2019-06-25 11:25:33 +01:00
Sebastian Wilzbach
12c5e1ee91
Use selective top-level module imports in std.algorithm
2019-05-23 10:21:19 +02:00
Nathan Sashihara
d4102819f6
Revert "Decrease template instantiation in std.algorithm.searching : all & any"
2019-05-01 15:46:44 -04:00
Nathan Sashihara
a4d4e03a5e
Decrease template instantiation in std.algorithm.searching : all & any
...
Using LDC with optimizations enabled the end compiled result is the same.
2019-04-15 01:45:22 -04:00
Sebastian Wilzbach
5c3f7f5783
Merge remote-tracking branch 'upstream/stable' into merge_stable
2019-04-09 18:45:49 +02:00
aG0aep6G
b8610beec3
use constructors instead of move
2019-03-31 15:25:03 +02:00
Rainer Schuetze
2e13c10025
add workaround for https://issues.dlang.org/show_bug.cgi?id=2396 to reduce compile time of unittests
2019-03-29 12:12:53 +01:00
Nicholas Wilson
f7c573ab23
Merge pull request #6935 from aG0aep6G/18657-2
...
make `cycle`, `splitter`, `roundRobin`, and `until` compatible with `RefRange`
2019-03-28 10:34:39 +08:00
aG0aep6G
98068cebe7
fixup! fix issue 19765 - std.algorithm.searching.findAmong doesn't save
like it should
2019-03-26 23:08:39 +01:00
aG0aep6G
bd47453b49
make until
compatible with RefRange
...
Part of a series on issue 18657.
2019-03-26 21:42:57 +01:00
aG0aep6G
e1dbed97d8
fix issue 19765 - std.algorithm.searching.findAmong doesn't save
like it should
2019-03-26 20:43:36 +01:00
Vasyl Teliman
5795db7ab7
Fix Issue 18806 - InputRange for std.algorithm.minIndex
2019-03-12 15:21:06 +02:00
Arun Chandrasekaran
744e15aed1
canFind: added example to search for multiple needles in an array of hay stacks.
2018-12-11 00:44:03 -08:00
Sebastian Wilzbach
887f7558e0
Fix Issue 13683 - More precise error message for wrong lambda
2018-11-15 15:05:03 +10:00
Per Nordlöw
6b64ed9d57
Fix Issue 19366 - Qualify opCast(bool) as const for findSplit, findSplitBefore and findSplitAfter.
2018-11-05 10:48:27 -05:00
Sebastian Wilzbach
eb6d449aa4
Fix dxml regression in multiple arguments skipOver
2018-08-20 14:05:54 +02:00
The Dlang Bot
1e3272746a
Merge pull request #6143 from wilzbach/skipOver
...
Fix Issue 12335 - std.algorithm.skipOver should support multiple args like startsWith
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-08-15 17:06:39 +02:00
aG0aep6G
0b8f203041
fix issue 19023 - findSplitBefore and findSplitAfter give wrong bool result
2018-06-24 23:00:00 +02:00