Commit graph

227 commits

Author SHA1 Message Date
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
a4a11a4092
Merge pull request #6191 from thaven/enhancement/slist
SList implementation improvements
2018-04-02 15:15:27 +02:00
Harry T. Vennik
8d873b9ce7 Add unittest for dup
`dup` was only being tested through its usage in `opBinary`, so the
new implementation of `opBinary`, which doesn't use `dup` anymore,
left `dup` untested.
2018-03-28 19:28:57 +02:00
Harry T. Vennik
7e77124637 Forbid shared element types for SList
Did not work anyway, and would be bad usage of shared too.
2018-03-28 19:28:57 +02:00
Harry T. Vennik
da67f771c7 Put common logic of insert methods into new static method
Also optimize by avoiding allocation of temporary root Node.
2018-03-28 19:28:57 +02:00
Harry T. Vennik
8af8b86dd0 Optimize opBinary 2018-03-28 19:28:57 +02:00
Jack Stouffer
b0aa5597cf
Revert "std.container.slist: Fix a @safe cannot call @system issue" 2018-03-27 07:42:43 -04:00
carblue
a3cfd08490 dip1000.mak+std.container.slist: Fix a -dip1000 compilable issue 2018-03-22 06:43:52 +01:00
viktor
a3f8992766 Fix issue 18634 - support for delegate comparators in rbtree
RedBlackTree.opEquals() was preventing the use of delegates by
explicitly forcing the equal() check to go through a function.
2018-03-20 00:38:06 +02:00
The Dlang Bot
997464b4b2
Merge pull request #4885 from rjframe/arraymem
Fix issue 13642 - Change of length reallocates without notifying GC
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-05 18:58:16 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
RazvanN7
281fe177ac Fix erroneous imports 2018-01-22 16:37:22 +02:00
Jack Stouffer
dc291a16e4 Changed all instances of FormatSpec to const ref 2018-01-04 10:05:16 -05:00
Ryan Frame
e837813478 Fix issue 13642 - Change of length reallocates without notifying GC 2017-12-29 07:24:54 -05:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
The Dlang Bot
8e4dfdbd50
Merge pull request #5794 from n8sh/container-array-puremalloc
Fix Issue 17919: Make std.container.Array use pureMalloc
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-15 00:42:11 +01:00
n8sh
06d738f069 Fix Issue 17919: Make std.container.Array use pureMalloc
Using pureMalloc like std.typecons.RefCounted does would make it
possible to use std.container.Array in  `pure` code.
2017-10-25 13:14:50 -04:00
Andrei Alexandrescu
e5a146bca3 Merge pull request #5784 from Darredevil/issue-9362-slist-remove
Fix Issue 9362 - Add a method to remove one item to std.container.SList
2017-10-24 09:28:18 -04:00
Alexandru Caciulescu
aee56671f8 Fix issue 9362 - Add linearRemoveElement from Slist 2017-10-19 17:32:17 +03:00
Alexandru Caciulescu
7d5708b0a8 Add liniarRemoveElement from Dlist 2017-10-19 17:31:27 +03:00
Andrei Alexandrescu
1a08d2a8d6 Convert section labels to title case 2017-07-12 15:19:57 -04:00
The Dlang Bot
8f98afc9ae Merge pull request #5473 from dmarquant/bug12866
Issue 12866: Allows concatenating of std.container.array with static arrays as T.
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-06-27 00:41:40 +02:00
Steven Schveighoffer
4de14ab4c9 Change opOpAssign to use auto ref to prevent copying static arrays 2017-06-26 10:54:39 -04:00
anonymous
29c7f36df5 fix issue 17519 - RedBlackTree doesn't like const/immutable elements 2017-06-18 11:35:00 +03:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
The Dlang Bot
863a3f604d Merge pull request #5457 from Boris-Barboris/dlist_remove
DList mutation: popFirstOf and popLastOf
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-06-12 22:39:31 +02:00
Boris-Barboris
16cb9873ce errata 2017-06-12 22:23:16 +03:00
Boris-Barboris
8b09ce3c38 no return value 2017-06-12 22:15:03 +03:00
Boris-Barboris
a5fbc4db78 shring range too to keep it in consistent state 2017-06-12 22:13:38 +03:00
Boris-Barboris
641fc718b6 work around range consistency checks 2017-06-12 21:53:29 +03:00
Boris-Barboris
60e8209d98 doc unittest, syntax refining 2017-06-12 21:35:57 +03:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
David Marquant
879f0b9d0a Remove redundant check using binop 2017-06-11 22:27:03 +02:00
David Marquant
7c21752197 Fix Issue 12866 - concatenating to std.container.array of static arrays 2017-06-11 22:24:20 +02:00
Boris-Barboris
2c79fbf8e5 extended moduletests coverage 2017-06-09 20:52:20 +03:00
Boris-Barboris
0415721e05 DList: popFirstOf and popLastOf 2017-06-09 19:24:38 +03:00
Sebastian Wilzbach
e162658601 Fix Issue 17452 - Undefined references in std.container.array 2017-05-29 21:43:37 +02:00
The Dlang Bot
a7e2f340fa Merge pull request #5294 from byebye/array_length_opt
std.container.Array - do not realloc if enough capacity
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-04-18 02:59:02 +02:00
Steven Schveighoffer
cded892eba Fix style 2017-04-11 15:39:52 -04:00
kirsybuu
2245025f6b Only grow if full 2017-04-11 11:31:55 -04:00
Michael Coulombe
ef9f4b9fee fix issue 17314 2017-04-09 11:55:26 -04:00
Michael Coulombe
0912b24302 fix issue 17314 2017-04-09 09:22:37 -04:00
byebye
a7651e327c std.container.Array - do not realloc if enough capacity 2017-03-31 13:02:06 +02:00
byebye
9fddec58c9 std.container.Array - optimize concatenation 2017-03-23 12:58:01 +01:00
byebye
165195936c std.container.Array - documentation cleanup
- add missing details, e.g. about exception being thrown
- fix wrong descriptions
- fix wrong complexity specifications
2017-03-21 00:53:49 +01:00
byebye
1f78675386 Fix initializeAll invocation 2017-03-11 20:22:14 +01:00
byebye
8ba7ce59ba Fix issue 13619 - array capacity not updated when changing length 2017-03-11 18:42:02 +01:00
Jack Stouffer
33521889fa Merge pull request #5212 from wilzbach/remove-quickindex
Remove quickIndex for modules with booktables or only one symbol
2017-03-01 16:58:56 -05:00