Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.

API documentation

ModuleDescription
std.algorithm.comparison This is a submodule of std.algorithm. It contains generic comparison algorithms.
std.algorithm.iteration This is a submodule of std.algorithm. It contains generic iteration algorithms.
std.algorithm.mutation This is a submodule of std.algorithm. It contains generic mutation algorithms.
std.algorithm.searching This is a submodule of std.algorithm. It contains generic searching algorithms.
std.algorithm.setops This is a submodule of std.algorithm. It contains generic algorithms that implement set operations.
std.algorithm.sorting This is a submodule of std.algorithm. It contains generic sorting algorithms.
std.container.array This module provides an Array type with deterministic memory usage not reliant on the GC, as an alternative to the built-in arrays.
std.container.binaryheap This module provides a BinaryHeap (aka priority queue) adaptor that makes a binary heap out of any user-provided random-access range.
std.container.dlist This module implements a generic doubly-linked list container. It can be used as a queue, dequeue or stack.
std.container.rbtree This module implements a red-black tree container.
std.container.slist This module implements a singly-linked list container. It can be used as a stack.
std.container.util This module contains some common utilities used by containers.
std.datetime.date
std.datetime.interval
std.datetime.stopwatch Module containing some basic benchmarking and timing functionality.
std.datetime.systime
std.datetime.timezone
std.digest.crc Cyclic Redundancy Check (32-bit) implementation.
std.digest.hmac This package implements the hash-based message authentication code (HMAC) algorithm as defined in RFC2104. See also the corresponding Wikipedia article.
std.digest.md Computes MD5 hashes of arbitrary data. MD5 hashes are 16 byte quantities that are like a checksum or CRC, but are more robust.
std.digest.murmurhash Computes MurmurHash hashes of arbitrary data. MurmurHash is a non-cryptographic hash function suitable for general hash-based lookup. It is optimized for x86 but can be used on all architectures.
std.digest.ripemd Computes RIPEMD-160 hashes of arbitrary data. RIPEMD-160 hashes are 20 byte quantities that are like a checksum or CRC, but are more robust.
std.digest.sha Computes SHA1 and SHA2 hashes of arbitrary data. SHA hashes are 20 to 64 byte quantities (depending on the SHA algorithm) that are like a checksum or CRC, but are more robust.
std.experimental.allocator.building_blocks.affix_allocator
std.experimental.allocator.building_blocks.allocator_list
std.experimental.allocator.building_blocks.bitmapped_block
std.experimental.allocator.building_blocks.bucketizer
std.experimental.allocator.building_blocks.fallback_allocator
std.experimental.allocator.building_blocks.free_list
std.experimental.allocator.building_blocks.free_tree
std.experimental.allocator.building_blocks.kernighan_ritchie
std.experimental.allocator.building_blocks.null_allocator
std.experimental.allocator.building_blocks.quantizer
std.experimental.allocator.building_blocks.region
std.experimental.allocator.building_blocks.scoped_allocator
std.experimental.allocator.building_blocks.segregator
std.experimental.allocator.building_blocks.stats_collector Allocator that collects useful statistics about allocations, both global and per calling point. The statistics collected can be configured statically by choosing combinations of Options appropriately.
std.experimental.allocator.building_blocks

Assembling Your Own Allocator

std.experimental.allocator.common Utility and ancillary artifacts of std.experimental.allocator. This module shouldn't be used directly; its functionality will be migrated into more appropriate parts of std.
std.experimental.allocator.gc_allocator D's built-in garbage-collected allocator.
std.experimental.allocator.mallocator The C heap allocator.
std.experimental.allocator.mmap_allocator
std.experimental.allocator.showcase Collection of typical and useful prebuilt allocators using the given components. User code would typically import this module and use its facilities, or import individual heap building blocks and assemble them.
std.experimental.allocator.typed This module defines TypedAllocator, a statically-typed allocator that aggregates multiple untyped allocators and uses them depending on the static properties of the types allocated. For example, distinct allocators may be used for thread-local vs. thread-shared data, or for fixed-size data (struct, class objects) vs. resizable data (arrays).
std.experimental.logger.core
std.experimental.logger.filelogger
std.experimental.logger.multilogger
std.experimental.logger.nulllogger
std.experimental.allocator High-level interface for allocators. Implements bundled allocation/creation and destruction/deallocation of data including structs and classes, and also array primitives related to allocation. This module is the entry point for both making use of allocators and for their documentation.
std.experimental.checkedint
std.experimental.logger Implements logging facilities.
std.experimental.typecons This module implements experimental additions/modifications to std.typecons.
std.net.curl Networking client functionality as provided by libcurl. The libcurl library must be installed on the system in order to use this module.
std.net.isemail Validates an email address according to RFCs 5321, 5322 and others.
std.range.interfaces This module is a submodule of std.range.
std.range.primitives This module is a submodule of std.range.
std.windows.charset Support UTF-8 on Windows 95, 98 and ME systems.
std.windows.iunknown Deprecated. Use core.sys.windows.com instead. This module will be removed in June 2017.
std.windows.syserror Convert Win32 error code to string.
std.algorithm This package implements generic algorithms oriented towards the processing of sequences. Sequences processed by these functions define range-based interfaces. See also Reference on ranges and tutorial on ranges.
std.array Functions and types that manipulate built-in arrays and associative arrays.
std.ascii Functions which operate on ASCII characters.
std.base64 Support for Base64 encoding and decoding.
std.bigint Arbitrary-precision ('bignum') arithmetic.
std.bitmanip Bit-level manipulation facilities.
std.compiler Identify the compiler used and its various features.
std.complex This module contains the Complex type, which is used to represent complex numbers, along with related mathematical operations and functions.
std.concurrency This is a low-level messaging API upon which more structured or restrictive APIs may be built. The general idea is that every messageable entity is represented by a common handle type called a Tid, which allows messages to be sent to logical threads that are executing in both the current process and in external processes using the same interface. This is an important aspect of scalability because it allows the components of a program to be spread across available resources with few to no changes to the actual implementation.
std.container This module defines generic containers.
std.conv A one-stop shop for converting values from one type to another.
std.csv Implements functionality to read Comma Separated Values and its variants from an input range of dchar.
std.datetime Module containing Date/Time functionality.
std.demangle Demangle D mangled names.
std.digest This module describes the digest APIs used in Phobos. All digests follow these APIs. Additionally, this module contains useful helper methods which can be used with every digest type.
std.encoding Classes and functions for handling and transcoding between various encodings.
std.exception This module defines functions related to exceptions and general error handling. It also defines functions intended to aid in unit testing.
std.file Utilities for manipulating files and scanning directories. Functions in this module handle files as a unit, e.g., read or write one file at a time. For opening files and manipulating them via handles refer to module std.stdio.
std.format This module implements the formatting functionality for strings and I/O. It's comparable to C99's vsprintf() and uses a similar format encoding scheme.
std.functional Functions that manipulate other functions.
std.getopt Processing of command line options.
std.json JavaScript Object Notation
std.math Contains the elementary mathematical functions (powers, roots, and trigonometric functions), and low-level floating-point operations. Mathematical special functions are available in std.mathspecial.
std.mathspecial Mathematical Special Functions
std.meta Templates to manipulate template argument lists (also known as type lists).
std.mmfile Read and write memory mapped files.
std.numeric This module is a port of a growing fragment of the numeric header in Alexander Stepanov's Standard Template Library, with a few additions.
std.outbuffer Serialize data to ubyte arrays.
std.parallelism std.parallelism implements high-level primitives for SMP parallelism. These include parallel foreach, parallel reduce, parallel eager map, pipelining and future/promise parallelism. std.parallelism is recommended when the same operation is to be executed in parallel on different data, or when a function is to be executed in a background thread and its result returned to a well-defined main thread. For communication between arbitrary threads, see std.concurrency.
std.path This module is used to manipulate path strings.
std.process Functions for starting and interacting with other processes, and for working with the current process' execution environment.
std.random Facilities for random number generation.
std.range This module defines the notion of a range. Ranges generalize the concept of arrays, lists, or anything that involves sequential access. This abstraction enables the same set of algorithms (see std.algorithm) to be used with a vast variety of different concrete types. For example, a linear search algorithm such as find works not just for arrays, but for linked-lists, input files, incoming network data, etc.
std.regex Regular expressions are a commonly used method of pattern matching on strings, with regex being a catchy word for a pattern in this domain specific language. Typical problems usually solved by regular expressions include validation of user input and the ubiquitous find & replace in text processing utilities.
std.signals Signals and Slots are an implementation of the Observer Pattern. Essentially, when a Signal is emitted, a list of connected Observers (called slots) are called.
std.socket Socket primitives.
std.stdint D constrains integral types to specific sizes. But efficiency of different sizes varies from machine to machine, pointer sizes vary, and the maximum integer size varies. stdint offers a portable way of trading off size vs efficiency, in a manner compatible with the stdint.h definitions in C.
std.stdio Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.
std.string String handling functions.
std.system Information about the target operating system, environment, and CPU.
std.traits Templates which extract information about types and symbols at compile time.
std.typecons This module implements a variety of type constructors, i.e., templates that allow construction of new, useful general-purpose types.
std.uni

The std.uni module provides an implementation of fundamental Unicode algorithms and data structures. This doesn't include UTF encoding and decoding primitives, see decode and encode in std.utf for this functionality.

std.uri Encode and decode Uniform Resource Identifiers (URIs). URIs are used in internet transfer protocols. Valid URI characters consist of letters, digits, and the characters ;/?:@&=+$,-_.!~*'() Reserved URI characters are ;/?:@&=+$ Escape sequences consist of % followed by two hex digits.
std.utf Encode and decode UTF-8, UTF-16 and UTF-32 strings.
std.uuid A UUID, or Universally unique identifier, is intended to uniquely identify information in a distributed environment without significant central coordination. It can be used to tag objects with very short lifetimes, or to reliably identify very persistent objects across a network.
std.variant This module implements a discriminated union type (a.k.a. tagged union, algebraic type). Such types are useful for type-uniform binary interfaces, interfacing with scripting languages, and comfortable exploratory programming.
std.xml Warning: This module is considered out-dated and not up to Phobos' current standards. It will remain until we have a suitable replacement, but be aware that it will not remain long term.
std.zip Read/write data in the zip archive format. Makes use of the etc.c.zlib compression library.
std.zlib Compress/decompress data using the zlib library.
core.stdcpp.exception Interface to C++
core.stdcpp.typeinfo Interface to C++
core.sync.barrier The barrier module provides a primitive for synchronizing the progress of a group of threads.
core.sync.condition The condition module provides a primitive for synchronized condition checking.
core.sync.config The config module contains utility routines and configuration information specific to this package.
core.sync.exception Define base class for synchronization exceptions.
core.sync.mutex The mutex module provides a primitive for maintaining mutually exclusive access.
core.sync.rwmutex The read/write mutex module provides a primitive for maintaining shared read access and mutually exclusive write access.
core.sync.semaphore The semaphore module provides a general use semaphore for synchronization.
core.atomic The atomic module provides basic support for lock-free concurrent programming.
core.attribute This module contains UDA's (User Defined Attributes) either used in the runtime or special UDA's recognized by compiler.
core.bitop This module contains a collection of bit-level operations.
core.checkedint This module implements integral arithmetic primitives that check for out-of-range results.
core.cpuid Identify the characteristics of the host CPU, providing information about cache sizes and assembly optimisation hints. This module is provided primarily for assembly language programmers.
core.demangle The demangle module converts mangled D symbols to a representation similar to what would have existed in code.
core.exception The exception module defines all system-level exceptions and provides a mechanism to alter system-level error handling.
core.math Builtin mathematical intrinsics
core.memory This module provides an interface to the garbage collector used by applications written in the D programming language. It allows the garbage collector in the runtime to be swapped without affecting binary compatibility of applications.
core.runtime The runtime module exposes information specific to the D runtime code.
core.simd Builtin SIMD intrinsics
core.thread The thread module provides support for thread creation and management.
core.time Module containing core time functionality, such as Duration (which represents a duration of time) or MonoTime (which represents a timestamp of the system's monotonic clock).
core.vararg The vararg module is intended to facilitate vararg manipulation in D. It should be interface compatible with the C module "stdarg," and the two modules may share a common implementation if possible (as is done here).
etc.c.odbc.sql Declarations for interfacing with the ODBC library.
etc.c.odbc.sqlext Declarations for interfacing with the ODBC library.
etc.c.odbc.sqltypes Declarations for interfacing with the ODBC library.
etc.c.odbc.sqlucode Declarations for interfacing with the ODBC library.
etc.c.curl This is an interface to the libcurl library.
gc.impl.conservative.gc Contains the garbage collector implementation.
gc.impl.manual.gc This module contains a minimal garbage collector implementation according to published requirements. This library is mostly intended to serve as an example, but it is usable in applications which do not rely on a garbage collector to clean up memory (ie. when dynamic array resizing is not used, and all memory allocated with 'new' is freed deterministically with 'delete').
gc.bits Contains a bitfield used by the GC.
gc.config Contains the garbage collector configuration.
gc.gcinterface Contains the internal GC interface.
gc.os Contains OS-level routines needed by the garbage collector.
gc.pooltable A sorted array to quickly lookup pools.
gc.proxy Contains the external GC interface.
rt.backtrace.dwarf This code handles backtrace generation using dwarf .debug_line section in ELF files for linux.
rt.backtrace.elf This code reads ELF files and sections using memory mapped IO.
rt.typeinfo.ti_Acdouble TypeInfo support code.
rt.typeinfo.ti_Acfloat TypeInfo support code.
rt.typeinfo.ti_Acreal TypeInfo support code.
rt.typeinfo.ti_Adouble TypeInfo support code.
rt.typeinfo.ti_Afloat TypeInfo support code.
rt.typeinfo.ti_Ag TypeInfo support code.
rt.typeinfo.ti_Aint TypeInfo support code.
rt.typeinfo.ti_Along TypeInfo support code.
rt.typeinfo.ti_Areal TypeInfo support code.
rt.typeinfo.ti_Ashort TypeInfo support code.
rt.typeinfo.ti_byte TypeInfo support code.
rt.typeinfo.ti_C TypeInfo support code.
rt.typeinfo.ti_cdouble TypeInfo support code.
rt.typeinfo.ti_cent TypeInfo support code.
rt.typeinfo.ti_cfloat TypeInfo support code.
rt.typeinfo.ti_char TypeInfo support code.
rt.typeinfo.ti_creal TypeInfo support code.
rt.typeinfo.ti_dchar TypeInfo support code.
rt.typeinfo.ti_delegate TypeInfo support code.
rt.typeinfo.ti_double TypeInfo support code.
rt.typeinfo.ti_float TypeInfo support code.
rt.typeinfo.ti_idouble TypeInfo support code.
rt.typeinfo.ti_ifloat TypeInfo support code.
rt.typeinfo.ti_int TypeInfo support code.
rt.typeinfo.ti_ireal TypeInfo support code.
rt.typeinfo.ti_long TypeInfo support code.
rt.typeinfo.ti_n TypeInfo support code.
rt.typeinfo.ti_ptr TypeInfo support code.
rt.typeinfo.ti_real TypeInfo support code.
rt.typeinfo.ti_short TypeInfo support code.
rt.typeinfo.ti_ubyte TypeInfo support code.
rt.typeinfo.ti_ucent TypeInfo support code.
rt.typeinfo.ti_uint TypeInfo support code.
rt.typeinfo.ti_ulong TypeInfo support code.
rt.typeinfo.ti_ushort TypeInfo support code.
rt.typeinfo.ti_void TypeInfo support code.
rt.typeinfo.ti_wchar TypeInfo support code.
rt.util.container.array Array container for internal usage.
rt.util.container.common Common code for writing containers.
rt.util.container.hashtab HashTab container for internal usage.
rt.util.container.treap Treap container for internal usage.
rt.util.array Array utilities.
rt.util.hash The default hash implementation.
rt.util.random Random number generators for internal usage.
rt.util.typeinfo This module contains utilities for TypeInfo implementation.
rt.util.utf Encode and decode UTF-8, UTF-16 and UTF-32 strings.
rt.aaA Implementation of associative arrays.
rt.aApply This code handles decoding UTF strings for foreach loops. There are 6 combinations of conversions between char, wchar, and dchar, and 2 of each of those.
rt.aApplyR This code handles decoding UTF strings for foreach_reverse loops. There are 6 combinations of conversions between char, wchar, and dchar, and 2 of each of those.
rt.adi Implementation of dynamic array property support routines.
rt.alloca Implementation of alloca() standard C routine.
rt.arrayassign Implementation of array assignment support routines.
rt.arraycast Implementation of array cast support routines.
rt.arraycat Implementation of array copy support routines.
rt.cast_ Implementation of array assignment support routines.
rt.cmath2 Runtime support for complex arithmetic code generation (for Posix).
rt.config Configuration options for druntime
rt.cover Implementation of code coverage analyzer.
rt.critical_ Implementation of support routines for synchronized blocks.
rt.deh Implementation of exception handling support routines.
rt.deh_win32 Implementation of exception handling support routines for Win32.
rt.deh_win64_posix Written in the D programming language. Implementation of exception handling support routines for Posix and Win64.
rt.dmain2 Contains druntime startup and shutdown routines.
rt.dwarfeh Exception handling support for Dwarf-style portable exceptions.
rt.ehalloc Exception allocation, cloning, and release compiler support routines.
rt.lifetime This module contains all functions related to an object's lifetime: allocation, resizing, deallocation, and finalization.
rt.llmath Support for 64-bit longs.
rt.memory This module tells the garbage collector about the static data and bss segments, so the GC can scan them for roots. It does not deal with thread local static data.
rt.memset Contains a memset implementation used by compiler-generated code.
rt.minfo Written in the D programming language. Module initialization routines.
rt.monitor_ Contains the implementation for object monitors.
rt.obj Contains object comparator functions called by generated code.
rt.qsort This is a public domain version of qsort.d. All it does is call C's qsort().
rt.sections
rt.sections_android Written in the D programming language. This module provides bionic-specific support for sections.
rt.sections_elf_shared Written in the D programming language. This module provides ELF-specific support for sections with shared libraries.
rt.sections_osx_x86 Written in the D programming language. This module provides OS X x86 specific support for sections.
rt.sections_osx_x86_64 Written in the D programming language. This module provides OS X x86-64 specific support for sections.
rt.sections_solaris Written in the D programming language. This module provides Solaris-specific support for sections.
rt.sections_win32 Written in the D programming language. This module provides Win32-specific support for sections.
rt.sections_win64 Written in the D programming language. This module provides Win32-specific support for sections.
rt.tlsgc
rt.trace Contains support code for code profiling.
rt.tracegc Contains implementations of functions called when the -profile=gc switch is thrown.
rt.unwind Written in the D programming language. Equivalent to unwind.h
object Forms the symbols available to all D programs. Includes Object, which is the root of the class object hierarchy. This module is implicitly imported.

Access to plattform libraries is supported by specific D header files.

D header files
C99 core.stdc.assert_ core.stdc.complex core.stdc.ctype core.stdc.errno core.stdc.fenv core.stdc.float_ core.stdc.inttypes core.stdc.limits core.stdc.locale core.stdc.math core.stdc.signal core.stdc.stdarg core.stdc.stddef core.stdc.stdint core.stdc.stdio core.stdc.stdlib core.stdc.string core.stdc.tgmath core.stdc.time core.stdc.wchar_ core.stdc.wctype
Posix
Windows
GNU/Linux
FreeBSD
OSX
Solaris

Deprecated D header files.

D header files
C