std::range_format(3)
πΈ NAME πΈ
okay so bestie, this is the manual page for std::range_format β and yes, it's literally std::range_format doing std::range_format things π
. It lives in the C++ Standard Libary (their spelling, not mine π) and the manpage is std::range_format(3), periodt.
β¨ Synopsis β¨
Defined in header <format>:
enum class range_format {
disabled,
map,
set, (since C++23)
sequence,
string,
debug_string
};
Specifies how a range should be formatted. That's the whole vibe check: this enum tells you how a range gets formatted π«Ά.
π the constants, explained π
disabledβ disallows the range default formatter to format the range. nope, not today π.mapβ allows formatting the range as a map representation with modified brackets"{", "}"and separator": "for underlying pair-like types, in the following format:{ key-1 : value-1, ..., key-n : value-n }π₯.setβ allows formatting the range as a set representation with modified brackets"{"and"}"in the following format:{ key-1, ..., key-n }β¨.sequenceβ allows formatting the range as a sequence representation with default brackets"[","]"and separator", "in the following format:[ element-1, ..., element-n ]π.stringβ allows formatting the range as a string π.debug_stringβ allows formatting the range as an escaped string π.
π See also π
formatterβ defines formatting rules for a given type;(C++20)(class template).format_kindβ selects a suitedstd::range_formatfor a range;(C++23)(variable template).
mwah π source/version is http://cppreference.com, dated 2024.06.10, and this iconic little page is std::range_format(3) β slay, bye bestie π¦.
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms