phobos/std
Paul Backus c5d074b12e Refactor: access SumType value by index, not type
Previously, code that already knew the desired index was forced to
compute a type to pass to get!T or memberName!T, just for get!T or
memberName!T to turn that type back into an index. Removing this
unnecessary round trip simplifies the code.

Additionally, since memberName is no longer dependent on SumType.Types,
it can be moved to module scope, and its instantiations can be shared
across different SumType instances.
2025-02-03 00:46:36 +01:00
..
algorithm Fix #10538 - Cannot swap a std.typecons.Tuple (#8864) 2025-01-17 15:13:37 +08:00
container Merge remote-tracking branch 'origin/stable' into merge_stable 2024-11-17 01:17:07 +01:00
datetime Remove flakey stopwatch test (#10628) 2025-01-22 05:00:11 +08:00
digest Optimize fromHexString() 2024-11-04 03:43:04 +01:00
experimental Add SharedAllocatorList (#10594) 2024-12-27 11:40:08 +08:00
format unittest: Don't run x87 log2 test on 64-bit real targets 2025-01-19 15:45:14 +01:00
internal Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
logger Fix #10581std.logger has an ostensibly broken example and wrong docs 2024-12-11 09:30:19 +01:00
math unittest: Don't run x87 log2 test on 64-bit real targets 2025-01-19 15:45:14 +01:00
net Fix assigning const(void)[] to void[] 2024-06-16 08:57:24 +02:00
range RandomFiniteAssignable incorrectly referenced as RandomAccessAssignable in ddoc index (#10630) 2025-01-24 06:11:51 +08:00
regex Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
uni Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
windows Remove unused import 2024-11-27 21:40:53 +08:00
array.d Add low-overhead InPlaceAppender (#8789) 2025-01-19 08:03:43 +08:00
ascii.d Optimize isHexDigit (#8597) 2022-10-13 10:49:06 +08:00
base64.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
bigint.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
bitmanip.d Merge remote-tracking branch 'origin/stable' into merge_stable 2024-11-17 01:17:07 +01:00
checkedint.d Docs: fix 'for signed integrals' appearing twice (#10626) 2025-01-19 19:19:11 +08:00
compiler.d Fix Stupid -> Snazzy based on updated name. 2022-09-11 20:37:17 +02:00
complex.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
concurrency.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
conv.d Fixes for -preview=rvaluerefparam (#9092) 2024-11-26 22:29:24 -08:00
csv.d Fix bugzilla 24478 - std.csv array out of bounds when row size exceeds header 2024-04-02 21:28:26 +02:00
demangle.d
encoding.d Rename the initial value of some enums from init to _init 2021-05-12 10:56:46 +08:00
exception.d remove uses of classinfo, rebases part of #7445 (#9062) 2024-10-21 09:50:11 +03:00
file.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
functional.d Fix unittests of toDelegate (#10631) 2025-01-25 06:41:52 +08:00
getopt.d Fix Issue 23940 - std.getopt does not assert with options that only differ in case with config.caseInsensitive 2023-05-27 17:38:25 +02:00
int128.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
json.d std.json: Void initialize return value in emptyOrderedObject (#10617) 2025-01-11 05:51:56 +08:00
mathspecial.d Throughout Phobos use core.math intrinsics instead of std.math wrappers 2021-03-02 07:09:08 +01:00
meta.d Switch to faster version of staticMap 2022-08-16 22:58:51 +02:00
mmfile.d Fix std.mmap documentation 2024-01-16 17:59:49 +01:00
numeric.d Fix bugzilla 24851 - Some members of CustomFloat can have const this 2024-11-10 13:53:13 +01:00
outbuffer.d Fix Bugzilla 20870 - std.outbuffer.printf is trusted (#9037) 2024-07-31 20:05:48 +08:00
package.d Move logger out of experimental 2022-07-29 12:15:34 +02:00
parallelism.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
path.d Remove unused import (#10578) 2024-12-08 15:54:03 +08:00
process.d Merge remote-tracking branch 'upstream/stable' into merge_stable 2025-01-09 22:30:38 +00:00
random.d Make unpredictableSeed use BCryptGenRandom (CNG) on Windows 2025-01-26 01:56:31 +01:00
signals.d User hyperlinks to refer to bugzilla issues (#8766) 2023-06-16 14:45:44 +03:00
socket.d Fix reference to 'samples' folder 2025-01-13 23:53:54 +01:00
stdint.d
stdio.d Fix #10605 - Make File.byLine usable in @safe contexts 2025-01-17 18:51:08 +01:00
string.d overhaul documentation of std.string indexOf-like functions (#8560) 2024-10-27 14:32:06 +08:00
sumtype.d Refactor: access SumType value by index, not type 2025-02-03 00:46:36 +01:00
system.d fix issue 23881: add std.system.instructionSetArchitecture and std.system.ISA (#8744) 2023-05-09 15:37:29 +03:00
traits.d Fix Bugzilla issue 24875 (#9090) 2024-11-23 16:02:11 -08:00
typecons.d Fix #10538 - Cannot swap a std.typecons.Tuple (#8864) 2025-01-17 15:13:37 +08:00
typetuple.d
uri.d Adapt imports of std.format to new structure of std.format. 2021-03-19 13:22:00 +01:00
utf.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
uuid.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
variant.d Fix D-Scanner linting issues (#9070) 2024-10-27 01:21:56 -07:00
zip.d std.zip: Remove declarations with expired deprecations 2022-02-15 14:54:28 +01:00
zlib.d