std::io
Input and output APIs, stream handles, formatted printing, scanning, and file operations.
Standard modules and public APIs for this version.
Search the standard library, language reference, and compiler command line reference for this version.
The standard library contains the core modules that most Thrust programs use for everyday work: input and output, memory management, math helpers, dynamic arrays, and C bindings. It is intentionally small and explicit, so each module keeps close to the behavior it exposes.
These pages describe what each module provides, how its functions are meant to be used, and which parts map directly to C library behavior. Use this section as the starting point when you need reusable building blocks before writing lower-level bindings yourself.
Input and output APIs, stream handles, formatted printing, scanning, and file operations.
Mathematical constants and wrappers around scalar math functions for f64 and f32.
Allocation, reallocation, memory copy/move/set helpers, and memory mapping constants.
Generic contiguous dynamic array with capacity growth and index-based operations.
Owned null-terminated strings with byte operations, UTF-8 validation, and Unicode code point helpers.
Type aliases, constants, and C ABI signatures used by standard wrappers.
Optional value container with presence checks and safe access.
Process arguments, environment variables, and common system paths.
Parsing of signed and unsigned integers from text.
Parsing of floating-point values from text.
Random numbers and buffer filling.
Last-in first-out container.
First-in first-out container.
Double-ended queue with push and pop on both ends.
Hash map from keys to values.
Hash set of keys.
Integer intrinsics: overflow checks, saturation, and bit operations.
Floating-point intrinsics: abs, min, max, sqrt, fused multiply-add.
Raw C bindings for environment access.
Raw C bindings for integer text conversion.
Raw C bindings for floating-point text conversion.
Raw C bindings for time and random numbers.