k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00
monarch dodra
6c38c80eb2
tweak and doc in DList.linearRemove(Take!Range)
...
unittests already existed
2012-10-31 23:57:18 +01:00
monarch dodra
229aa26e0d
typoes in DList doc/unittest comments
2012-10-31 23:57:17 +01:00
monarch dodra
69d3a930b9
Fixes corner cases for DList remove/insert
...
Documents the exact behavior of DList.
Addresses all issues in:
http://forum.dlang.org/thread/gjhclwsuqyhrimdeoaec@forum.dlang.org
and
http://d.puremagic.com/issues/show_bug.cgi?id=8905
Also: Unittests.
Also: OpOpAssign
2012-10-31 23:57:16 +01:00
H. S. Teoh
8a70832ef5
Implement RedBlackTree.opEquals ...
...
... to actually compare tree contents. The current reference semantics
is not suitable for ==; for that we have 'is'.
2012-10-26 22:16:32 -07:00
H. S. Teoh
6c045bb3d3
Fix infinite loop in opEquals.
...
Add unittests to test non-trivial cases of opEquals.
2012-10-26 21:31:07 -07:00
Denis Shelomovskij
c193afff08
Update RefCounted
usage in std.container
2012-10-26 18:27:32 +04:00
Vladimir Panteleev
fde0998dea
Fix various problems in DDoc, identified from compiler warnings.
2012-10-19 19:09:47 +03:00
monarchdodra
01ec4661e5
{SD}List [front|back] primitives
...
Just some minor details:
* Adding void [front|back](T value) for DList and DList.Range.
* A few missing ddocs in both.
* A few missing enforcement checks.
We *may* want to change some of the enforce into asserts, but right now, there was nothing, and it was inconsistent.
2012-10-01 11:11:33 +02:00
Andrei Alexandrescu
caad7c5017
Merge pull request #764 from monarchdodra/bug8332
...
Fixes for issues 8332 and 8333 (try 2)
2012-09-16 19:38:45 -07:00
Justin Whear
67b231d932
Fix documentation mistake in RedBlackTree
...
RedBlackTree.empty was documented as "Returns true if at least one element exists), when it actually returns false (as expected) when there are items.
2012-09-05 16:19:28 -07:00
monarchdodra
9208b4e24e
Corrections
2012-09-04 09:34:02 +02:00
monarchdodra
dbfce09ba0
Array: Added methods + bugfix
...
Initially fixes 8332 and 8333
Added some opIndexUnary to both Array and Array.Range
Gave Array.Range opSliceUnary and opSliceOpAssign to do "range wide operation" aka:
r+=5 or ++r
Also moved a _few_ methods around for logical grouping. Bit of comment editing for consistency.
2012-08-31 18:37:23 +02:00
Adrian Matoga
09a5f5c472
Array!bool now assigns and reads correct values on 64-bit machines
2012-08-06 18:49:32 +01:00
Ellery Newcomer
6e81ceb1b4
moveBack moves back, not front
2012-07-23 16:43:35 -07:00
Hara Kenji
edcb304618
Merge pull request #706 from mylodon/container_slice_gaff
...
c[a, b] should be c[a .. b]
2012-07-20 21:51:58 -07:00
Ellery Newcomer
5d7148bf31
c[a, b] -> opIndex but we want call to go to opSlice
2012-07-20 16:26:03 -07:00
alexrp
b31fe94548
Fix std.container build.
2012-07-09 06:04:00 +02:00
Andrei Alexandrescu
e0757c5ded
Merge pull request #650 from revellian/master
...
Fix std.container.SList.linearRemove's TakeRange-bug
2012-07-08 20:07:39 -07:00
Revellian
61fa7c809c
- Incorporate comments by andralex
2012-07-03 00:29:48 +02:00
Andrei Alexandrescu
ec693afc67
Merge pull request #520 from NilsBossung/std.container.Array.replace
...
fix std.container.Array.replace
2012-07-01 19:04:54 -07:00
Revellian
0cae7ca6af
Added doubly-linked list (DList) to std.container
2012-06-25 21:32:51 +02:00
Revellian
64c5e3cffa
Fix std.container.SList.linearRemove's TakeRange-bug (if the TakeRange starts at the
...
head of the SList, the whole list was removed instead of only the
specified number.)
2012-06-25 21:13:53 +02:00
Brad Anderson
58c82f1267
Add Example to SList.insertAfter documentation
...
Along with matching unit test.
2012-06-12 21:33:06 -06:00
Nils Boßung
e643cde9ed
code formatting
2012-06-11 01:43:36 +02:00
k-hara
72a33de959
Replace object.clear to destroy
2012-05-31 19:27:52 +09:00
Nils Boßung
e5ae9fef21
make sure that Array instances refuse ranges that don't belong to them
2012-05-29 12:29:14 +02:00
Nils Boßung
ea41da991b
fix insertAfter
2012-05-29 12:24:16 +02:00
Steven Schveighoffer
a83d5f1388
issue 5650 - A RedBlackTree performance problem
...
Caching first node (as _begin) to improve lookup performance of first node.
2012-05-25 14:23:59 -04:00
dawg
afbc6f1df7
avoid performance penalty for scope (success)
2012-04-29 15:03:21 +02:00
Nils Boßung
6f1a2b05d2
remove -> linearRemove
2012-04-05 04:14:48 +02:00
Nils Boßung
e69e75e56c
compare _data with 'is'
2012-04-05 03:52:12 +02:00
Nils Boßung
ad2ec19d04
test replace!Stuff with range Stuff
2012-04-05 01:50:07 +02:00
Nils Boßung
da0d4d1c01
don't append, but insert
2012-04-05 01:39:16 +02:00
Nils Boßung
678a49e10c
remove -> linearRemove
2012-04-05 01:39:13 +02:00
Nils Boßung
fd80105431
remove what looks like forgotten, useless code
2012-04-05 01:39:10 +02:00
Andrei Alexandrescu
9d7168be5f
Fix documentation error in stableRemoveAny
2012-03-27 20:08:16 -06:00
k-hara
66e13b2c27
Revert "Revert "Merge pull request #120 from 9rnsr/rvalue-struct-literal""
...
This reverts commit 8a6bfd2529
.
2012-02-21 21:03:01 +09:00
Walter Bright
8a6bfd2529
Revert "Merge pull request #120 from 9rnsr/rvalue-struct-literal"
...
This reverts commit d780d9df0f
, reversing
changes made to c6ae86ca4f
.
2012-02-20 19:43:12 -08:00
Walter Bright
d780d9df0f
Merge pull request #120 from 9rnsr/rvalue-struct-literal
...
Supplemental changes of dmd/pull/41
2012-02-20 19:24:39 -08:00
Andrei Alexandrescu
da2cf56892
Merge pull request #363 from jmdavis/redblacktree
...
Fix for Bug #6472 . Make RedBlackTree's removeKey work with strings.
2012-02-05 13:25:29 -08:00
dawg
2c32205d46
remove access to private function
...
- std.net.curl uses RefCountedAutoInitialize.yes
2012-01-30 22:44:16 +01:00
k-hara
d3e1992d86
Add overloads for struct literal and construction that now make rvalue.
2012-01-23 23:41:45 +09:00
jmdavis
b646e0eed9
Reduced duplicate code in RedBlackTree's removeKey per review.
2011-12-12 12:54:18 -08:00
jmdavis
d138cf2f44
Fix for Bug #6472 . Make RedBlackTree's removeKey work with strings.
...
http://d.puremagic.com/issues/show_bug.cgi?id=6472
2011-12-10 23:19:42 -08:00
David Nadlinger
034b7e02bd
Remove unused, private Array helper.
2011-12-04 09:56:14 +01:00
David Nadlinger
e312f9898b
Strict @property syntax compliance.
...
This enables the test suite to build with the -property switch enabled.
std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
k-hara
fd3184f88a
Issue 5193 - SList cannot have struct elements that have immutable members.
2011-10-28 23:20:23 +09:00
Steven Schveighoffer
d56a3dca46
Fixed issue where RedBlackTree's vtable was different when compiled with -unittest.
...
http://d.puremagic.com/issues/show_bug.cgi?id=6761
2011-10-03 13:01:06 -04:00
XTZGZoReX
4f124108ab
Remove executable bit on two files.
2011-07-31 22:27:54 +02:00