All Stream Types and I/O Facilities

All Stream Types and I/O Facilities

A compact scan page for standard stream objects, stream classes, string/file streams, and related I/O building blocks.

How to use this reference page

Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.

  • Scan the top of the page first to identify the primary types, functions, or algorithm families involved.
  • Use the nearby-page links when your question is really about a companion header, related algorithm family, or broader subsystem.
  • Validate tricky behavior with a small compileable example before relying on memory for details like invalidation, ordering, allocation, or lifetime rules.

All Stream Types and I/O Facilities

Standard stream objects

Core stream class families

File and string streams

Common I/O helpers

Practical rules

Example in practice

#include <sstream>
#include <string>

int main() {
    std::istringstream input{"17 debug"};
    int level{};
    std::string tag;
    input >> level >> tag;
    return level == 17 && tag == "debug" ? 0 : 1;
}