Commit graph

66 commits

Author SHA1 Message Date
Andrei Alexandrescu
11b32b56e5 Fix links 2015-02-16 13:39:18 -08:00
Jakob Ovrum
5e0ce3747d Fix #13872
std.container.make!(Array!T) now returns a reference
to an actual container, not a 'null reference' that
initializes itself upon use.
2015-01-30 22:49:10 +01:00
Steven Schveighoffer
381c62e6ff Allow lambda that isn't string when unittest is enabled. 2015-01-30 10:31:52 -05:00
Steven Schveighoffer
acac626608 Fix issue 14082 -- unit test should only test known cases in red black tree. 2015-01-30 10:10:44 -05:00
JakobOvrum
224238a854 Merge pull request #2631 from nordlow/inout-array-range
Fix constness of array.d
2015-01-29 15:38:53 +09:00
Per Nordlöw
14d928e02e Fix constness of std.container.Array 2015-01-28 23:14:02 +01:00
Jakob Ovrum
6ab785520c Add example code for using ranges with containers 2015-01-28 23:50:35 +09:00
Jakob Ovrum
be57a6b7b1 Add example of using make with inferred element type 2015-01-28 23:34:08 +09:00
Jakob Ovrum
f30d6806dc Supplement to #2866
Removed use of personal pronouns
Fixed some broken DDoc syntax
Fixed/changed some English grammar
2015-01-28 23:27:23 +09:00
Marc Schütz
27071a6c7f Add forgotten D to macro 2015-01-25 21:53:30 +01:00
k-hara
a6f330c030 Use debug instead of version 2015-01-25 20:21:45 +09:00
Ferdinand Majerech
33261628ea Mentioning that a container is not a range. 2015-01-24 17:08:33 +01:00
Tobias Pankrath
822b765593 Improve docs in std/container/package.d 2015-01-11 19:53:21 +01:00
Tobias Pankrath
22f974d19f Explain memory management a bit more 2015-01-11 18:15:48 +01:00
Mike Parker
956e5abfc9 Fix broken documentation links in all std.container modules. 2015-01-07 23:01:51 +09:00
Andrei Alexandrescu
77843a07c6 Minor doc bugfix and changes of subscript definition 2014-12-29 10:47:30 -08:00
H. S. Teoh
72f03b0ce6 Boilerplate docs for std.container.*.
Improve std.container.* documentation.
2014-12-06 09:40:31 -08:00
H. S. Teoh
8e73c7889d Update std.container docs to reflect new submodules.
Improve wording in std.container docs.
2014-12-06 09:40:31 -08:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
Ilya Yaroshenko
0b948a6529 Use scope imports in std.container package
part2

part3
2014-11-15 01:19:18 +03:00
Dicebot
1149972dac Add unittest to prevent repeating regression
See https://issues.dlang.org/show_bug.cgi?id=13621
2014-10-27 21:46:55 +02:00
Dicebot
aa4f47d1b5 Revert "Merge pull request #2573 from nordlow/inout-array"
This reverts commit 4ae1b147a3, reversing
changes made to 335228cb07.

Conflicts:
	std/container/array.d
2014-10-27 21:45:16 +02:00
Steven Schveighoffer
ec5990986a Merge pull request #2617 from nordlow/pure-rbtree
Tag printing in rbtree.check() with debug to enable purity inference
2014-10-22 06:49:25 -04:00
Per Nordlöw
a7f3f22ccd Tag unittests at global scope as pure 2014-10-20 22:07:04 +02:00
Per Nordlöw
52379a6b92 Remove debug calls to printTree from within printTree itself 2014-10-20 18:28:13 +02:00
Per Nordlöw
97212ca17c Use debug printTree() instead 2014-10-20 00:21:36 +02:00
Per Nordlöw
049af6e633 Correct typo 2014-10-19 22:53:59 +02:00
Per Nordlöw
ea390ec67e Add non-debug purity unittest 2014-10-19 22:50:33 +02:00
Per Nordlöw
30b4e871c1 Tag printing with debug to infer purity 2014-10-19 22:13:02 +02:00
Martin Nowak
43a1e276fe fix Issue 12915 - RedBlackTree leaks memory 2014-10-18 20:46:57 +02:00
k-hara
6e54969188 Move prefix member function attributes to postfix 2014-10-04 22:27:14 +09:00
Per Nordlöw
8affb003e9 More constness checks 2014-10-01 12:32:43 +02:00
Per Nordlöw
703305f0bf Use inout for ref returning members in std.container.array 2014-09-30 23:43:25 +02:00
monarch dodra
4579a45cca Cleanup 13508 2014-09-24 11:45:56 +02:00
monarchdodra
f51f8d457f Split DList Node into DNode and PayNode. 2014-09-20 15:43:41 +02:00
JakobOvrum
e98bd28f46 Merge pull request #2498 from monarchdodra/ArrayStaticIf
Tweak static if in Array
2014-09-15 19:58:58 +09:00
monarch dodra
478c77b079 Tweak static if in Array
Probably changes nothing in the generated code, but can have an impact of attribute inference. I'm trying to get this to be `@nogc`
2014-09-08 21:51:15 +02:00
monarch dodra
d10fea94d5 Fix issue 13425 - DList.linearRemove on last...
...element returns non-empty range.

The main issue is that DList.Range is implemented in terms of "first and last" as opposed to "first and past last", which means you have to special-case empty ranges. The fix is to do the same thing as in `opSlice`, and to explicitly initialize a null Range when it is empty.
2014-09-08 17:30:48 +02:00
Mikhail Novikov
1b28cc9adc SList: insertAfter: correctly initialize new SList (fix for #2401) 2014-08-22 11:15:40 +03:00
H. S. Teoh
647385f222 Merge pull request #2401 from sigod/slist-correct-reference-semantics
SList: correct reference semantics
2014-08-21 12:09:40 -07:00
Mikhail Novikov
e881d153ac Fix Issue 12913 - container: removeAny: fix docs (position of removed element must be unspecified) 2014-08-20 11:42:43 +03:00
Mikhail Novikov
b1e4004365 SList.Node: remove constructor 2014-08-17 21:21:26 +03:00
Mikhail Novikov
c4c3e9448f SList: use NodeWithoutPayload for root node 2014-08-17 21:17:12 +03:00
Mikhail Novikov
27105ae95d SList: correct reference semantics 2014-08-17 00:47:14 +03:00
H. S. Teoh
177ecea48d Merge pull request #2382 from sigod/dlist-unused-code
DList: remove opBinary(string)(DList)
2014-08-05 09:31:59 -07:00
Hackerpilot
c578bf13d5 Eliminate bad use of alias 2014-08-04 16:20:20 -07:00
Mikhail Novikov
55c1de4b92 DList: deprecate opOpAssign(string)(DList) 2014-08-05 00:28:37 +03:00
Mikhail Novikov
514133355a DList: remove opBinary(string)(DList) 2014-07-30 23:46:20 +03:00
monarch dodra
7257c551db Merge pull request #2285 from sigod/slist-improvements
SList improvements
2014-07-27 18:52:27 +02:00
Jonathan M Davis
1cf19cbc1e Merge pull request #2360 from JakobOvrum/containermake
Add more convenient container-construction overload for std.container.make
2014-07-24 12:35:54 -07:00