xref: /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/package.d (revision a45db23f655e22f0c2354600d3b3c2cb98abf2dc)
1 /++
2 Convenience file that allows to import entire Phobos in one import.
3 +/
4 module std;
5 
6 ///
7 @safe unittest
8 {
9     import std;
10 
11     int len;
12     const r = 6.iota
13               .filter!(a => a % 2) // 1 3 5
14               .map!(a => a * 2) // 2 6 10
15               .tee!(_ => len++)
16               .substitute(6, -6) // 2 -6 10
17               .sum
18               .reverseArgs!format("Sum: %d");
19 
20     assert(len == 3);
21     assert(r == "Sum: 6");
22 }
23 
24 ///
25 @safe unittest
26 {
27     import std;
28     assert(10.iota.map!(a => pow(2, a)).sum == 1023);
29 }
30 
31 public import
32  std.algorithm,
33  std.array,
34  std.ascii,
35  std.base64,
36  std.bigint,
37  std.bitmanip,
38  std.compiler,
39  std.complex,
40  std.concurrency,
41  std.container,
42  std.conv,
43  std.csv,
44  std.datetime,
45  std.demangle,
46  std.digest,
47  std.encoding,
48  std.exception,
49  std.file,
50  std.format,
51  std.functional,
52  std.getopt,
53  std.json,
54  std.math,
55  std.mathspecial,
56  std.meta,
57  std.mmfile,
58  std.net.curl,
59  std.net.isemail,
60  std.numeric,
61  std.parallelism,
62  std.path,
63  std.process,
64  std.random,
65  std.range,
66  std.regex,
67  std.signals,
68  std.socket,
69  std.stdint,
70  std.stdio,
71  std.string,
72  std.sumtype,
73  std.system,
74  std.traits,
75  std.typecons,
76  std.uni,
77  std.uri,
78  std.utf,
79  std.uuid,
80  std.variant,
81  std.zip,
82  std.zlib;
83