Container access in std.container

Jonathan M Davis jmdavisProg at gmx.com
Mon Mar 28 09:02:44 PDT 2011


On 2011-03-28 07:48, David Nadlinger wrote:
> ---
> import std.container;
> import std.stdio;
> 
> void main() {
>      auto rb = redBlackTree(4, 1, 2, 3);
>      foreach (e; rb) {
>          writeln(e);
>      }
> }
> ---

I believe that the redBlackTree function is only in the git repository at 
present (so, it'll be in the next release), so if he's using dmd 2.052, that 
particular way of creating a RedBlackTree won't work.

- Jonatahn M Davis


More information about the Digitalmars-d-learn mailing list