Commit graph

20 commits

Author SHA1 Message Date
Ryan Roden-Corrent
05fd49ed88 Fix DList.insertFront(range) regression - #15263.
As createNode was taking a value by ref, Dlist.insertFront could not be
called with a range with a non-ref front.

Fix by taking the value as `auto ref` instead of just `ref`.
Resolves #15263.
2015-10-31 08:25:03 -04:00
Martin Nowak
a4f1cb07d2 fix Issue 14300 - DList casting to base type is broken
- All insert methods should take `auto ref T t`
  instead of `Stuff t`, because the latter is
  an unnecessary temporary if `Stuff` isn't `T`.

- Small, copyable, register sized Ts should always be
  passed by-value instead of auto ref.
2015-03-20 03:09:47 +01:00
Andrei Alexandrescu
11b32b56e5 Fix links 2015-02-16 13:39:18 -08:00
Mike Parker
956e5abfc9 Fix broken documentation links in all std.container modules. 2015-01-07 23:01:51 +09:00
H. S. Teoh
72f03b0ce6 Boilerplate docs for std.container.*.
Improve std.container.* documentation.
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
k-hara
6e54969188 Move prefix member function attributes to postfix 2014-10-04 22:27:14 +09: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
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
e881d153ac Fix Issue 12913 - container: removeAny: fix docs (position of removed element must be unspecified) 2014-08-20 11:42:43 +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
k-hara
62e5095fa5 fix Issue 13076 - [dmd 2.066-b2] DList clearing of empty list 2014-07-09 23:35:29 +09:00
k-hara
fa8c4f3280 Add missing imports 2014-06-28 21:46:48 +09:00
Damian Day
82544bd272 Update to git head. 2014-06-06 10:32:04 +01:00
Damian Day
0634e408f7 New Container
Turn std.container into a package.

Delete container.d

Remove totalcontainer from package.
Create std.container.util.d and reference it from other containers.
Correct code coverage for containers.

Add containers for unit testing.

Make std.container.util public from any module.
Move around imports (avoid version(unittest)).

Remove irrelevant unittests.
2014-05-28 08:31:22 +01:00