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.