Commit graph

30 commits

Author SHA1 Message Date
KennyTM~
45667ef418 Issue 5792 - Tuple!(real,string) fails (Make Array!hasIndirectionsType works)
http://d.puremagic.com/issues/show_bug.cgi?id=5792
2011-05-03 20:38:48 +08:00
KennyTM~
72978f4e09 Issue 5920 - Cannot create std.algorithm.Array of structs with custom destructor (hasElaborateDestructor).
http://d.puremagic.com/issues/show_bug.cgi?id=5920
2011-05-03 20:38:40 +08:00
Andrei Alexandrescu
b04c79ecb2 Changed Take.origin with Take.source in std.container 2011-04-06 00:38:09 -05:00
Andrei Alexandrescu
055cea0595 Merge branch 'master' of github.com:D-Programming-Language/phobos
Conflicts:
	posix.mak
2011-04-06 00:32:29 -05:00
Andrei Alexandrescu
1083bd4e7b One pass through std.range and friends
* Made emplace faster and replaced calls to it to also make them faster.

* Replaced phobos.d in posix.mak with index.d.

* Added version=StdDdoc to documentation build in posix.mak, and replaced uses of D_Ddoc with it.

* Improved documentation target in posix.mak (target dir automatically created).

* Added nice documentation table and cheat sheet at the top of std.algorithm.

* Replaced a few helper structs in std.range and std.algorithm with local structs, which simplify matters a fair amount.

* Added more constraints to functions in std.algorithm (still work in progress).

* Improved error message in std.algorithm.sort in case of failure to sort.

* std.random.dice(1, 10) now works (no need for array notation std.random.dice([1, 10])).

* Fixed documentation bugs and insufficiencies in std.range (still more to do).

* Improved speed of walkLength.

* Simplified retro.

* Simplified and optimized stride. Also folded stride(stride(r, a), b) into stride(r, a * b).

* Added roundRobin to std.range, which as a perk simplified radial.

* Added takeOne and takeNone to std.range.

* Added unsigned to std.traits.
2011-02-27 12:38:49 -06:00
jmdavis
c6874cb1b0 Changes to RedBlackTree per suggestions on pull request #10 of D-Programming-Language/Phobos.
I think that I took all of the suggestions into account, so it should be
improved per those suggestions. I also beefed up the unit tests a bit in
order to take different less and allowDuplicate values into account
(previously, it was only testing the defaults for those template
parameters).
2011-02-26 15:32:23 -06:00
jmdavis
ef67f4ecd5 Improvements to RedBlackTree.
1. It's now a class. The only constructor is now the default
constructor (since templatizing the constructors does not appear to
currently work).

2. It now has a helper function - redBlackTree - for creating it.

3. It now has a length property.

4. It now has a version of remove which takes a Take!Range.

5. It now has removeKey to allow you to remove one or more elements by value from it.
2011-02-26 15:32:23 -06:00
Walter Bright
1b8314c4e0 add source links 2011-02-26 15:32:21 -06:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
dsimcha
6c8bc9908f Flesh out std.container.Array.Range. 2011-01-26 22:02:16 -05:00
Andrei Alexandrescu
3d865b35b6 Fix for issue 4942 2011-01-22 19:17:40 +00:00
Andrei Alexandrescu
a14b7ad317 Replaced ell with en in the complexity column for better readability 2011-01-02 22:49:00 +00:00
Andrei Alexandrescu
7bc0565c02 Integrated RedBlackTree by Steven Schveighoffer 2010-12-13 06:44:17 +00:00
David Simcha
8331c70969 More 64 fixes for semantic errors that only show up when templates are instantiated via unittests. Now I'm actually serious about Phobos passing semantic analysis, except for a few modules due to weird druntime issues. 2010-11-10 05:25:50 +00:00
Shin Fujishiro
258e0b6f1c Fixed bug 5049: bringToFront() returns wrong value.
- Fixed the return value.
- Made bringToFront() handle stepping-over conditions correctly.
- Added undocumented SList.Range.sameHead for making the example code work.
2010-10-15 17:52:43 +00:00
Don Clugston
d184cf3264 BinaryHeap was silently broken because of the unspeakably ridiculous C 'function type' syntax. That syntax must die. 2010-10-04 07:03:23 +00:00
Andrei Alexandrescu
8c40564d31 Changed documentation format 2010-09-08 13:04:31 +00:00
Walter Bright
b8ce58ccd1 detab sources 2010-08-23 02:14:45 +00:00
Walter Bright
8be70ee244 revert std/container.d change 2010-07-29 05:34:19 +00:00
Walter Bright
6923b1680e reflect change in makefile names 2010-07-29 05:33:25 +00:00
Andrei Alexandrescu
13be65f8fd Added save property to the archetypal range 2010-07-28 08:06:38 +00:00
Andrei Alexandrescu
af76b9236d Defined TotalContainer such that all member functions issue assert(0). That way it's easy to build new containers by copying and pasting TotalContainer. Also added specialization of Array for bool that stores one bit per element. 2010-07-09 03:59:53 +00:00
Sean Kelly
f036f4ddcb Set native eol-style for some files that didn't have it. 2010-07-06 19:16:04 +00:00
Sean Kelly
a9b75b725f Fixed SList.insertAfter to actually use the supplied range as a hint for where the insertion should occur. 2010-06-17 22:39:30 +00:00
Lars T. Kyllingstad
cc1cb99255 4327 - std.container.Array.Range.~this() tries to call free(T[]) 2010-06-16 09:31:28 +00:00
Masahiro Nakagawa
32605802a0 Fix unittest of std.container.SList 2010-06-13 15:41:50 +00:00
Walter Bright
245e29f630 notify gc of malloc'd data 2010-06-12 20:56:25 +00:00
Walter Bright
7983faced4 make TightArray the standard Array 2010-06-12 05:11:18 +00:00
Andrei Alexandrescu
d4f2261656 BinaryHeap is now a container 2010-06-10 15:56:17 +00:00
Andrei Alexandrescu
1b9d41508d added std/container.d 2010-06-08 18:20:44 +00:00