std.container.RedBlackTree versus C++ std::set

Jonathan M Davis jmdavisProg at gmx.com
Thu Feb 14 09:47:00 PST 2013


On Thursday, February 14, 2013 13:27:30 monarch_dodra wrote:
> Actually, (and IMO, this is a very big problem), these structures
> are *always* null by default. There is no easy way to "default
> initialize" structs in D :(

You mean there's no way to default-construct them. They're always default-
initialized to their init value if you don't explicitly initialize them.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list