Issue 20646 - [Module std.container.rbtree] inadequate documentation
Summary: [Module std.container.rbtree] inadequate documentation
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL: http://dlang.org/library/std/containe...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-07 15:38 UTC by mark@qtrac.eu
Modified: 2024-12-01 16:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mark@qtrac.eu 2020-03-07 15:38:48 UTC
Every one of the examples shown at the top of the page uses the redBlackTree function which takes a sequence of items.

There isn't a single example that begins with an empty tree or that uses new. Yet, because RedBlackTree is a class, you _must_ use new to create a new empty tree.

I think there should be at least one example showing how to create an empty tree, and then populate it with some values.
Comment 1 dlangBugzillaToGithub 2024-12-01 16:36:27 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10409

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB