More on Phobos
We have only touched the surface of what's available in Phobos, D's standard library. We've seen a handful of functions scattered throughout the book, with the most detail being given in Chapter 7, Composing Functional Pipelines with Algorithms and Ranges, where we discussed the library's algorithms and other range-based functions. In this section, we'll take a quick hop around some of the more notable modules and packages in Phobos.
std.container
The std.container
package contains modules in a collection of data structures, such as linked lists and a red-black tree. All of the containers share a similar, range-based API. Though the containers are usable now, the state of the package has been in a sort of limbo for some time, awaiting the arrival of a std.allocator
package so that custom allocators can be used with each of the containers. At the time of writing, std.allocator
has been approved by community review for inclusion in the std.experimental
Phobos package. It was once...