Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Calendar
  - Forums
  - IRC
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# std

Convenience file that allows to import entire Phobos in one import.
Examples:

    import std;

    int len;
    const r = 6.iota
              .filter!(a => a % 2) // 1 3 5
              .map!(a => a * 2) // 2 6 10
              .tee!(_ => len++)
              .substitute(6, -6) // 2 -6 10
              .sum
              .reverseArgs!format("Sum: %d");

    writeln(len); // 3
    writeln(r); // "Sum: 6"

Examples:

    import std;
    writeln(10.iota.map!(partial!(pow, 2)).sum); // 1023

public import `std.algorithm`;
public import `std.array`;
public import `std.ascii`;
public import `std.base64`;
public import `std.bigint`;
public import `std.bitmanip`;
public import `std.compiler`;
public import `std.complex`;
public import `std.concurrency`;
public import `std.container`;
public import `std.conv`;
public import `std.csv`;
public import `std.datetime`;
public import `std.demangle`;
public import `std.digest`;
public import `std.encoding`;
public import `std.exception`;
public import `std.file`;
public import `std.format`;
public import `std.functional`;
public import `std.getopt`;
public import `std.json`;
public import `std.math`;
public import `std.mathspecial`;
public import `std.meta`;
public import `std.mmfile`;
public import `std.net.curl`;
public import `std.net.isemail`;
public import `std.numeric`;
public import `std.parallelism`;
public import `std.path`;
public import `std.process`;
public import `std.random`;
public import `std.range`;
public import `std.regex`;
public import `std.signals`;
public import `std.socket`;
public import `std.stdint`;
public import `std.stdio`;
public import `std.string`;
public import `std.system`;
public import `std.traits`;
public import `std.typecons`;
public import `std.uni`;
public import `std.uri`;
public import `std.utf`;
public import `std.uuid`;
public import `std.variant`;
public import `std.zip`;
public import `std.zlib`;

Copyright © 1999-2019 by the D Language Foundation | Page generated by Ddoc on Sun Aug 4 14:34:54 2019