std::money_base(3cxx)
πΈ std::money_base β money format ordering data πΈ
manual page tag: std::money_base(3cxx) β yes bestie, weβre in the <locale>-adjacent money-formatting corner of libstdc++ π
π·οΈ NAME π·οΈ
std::money_base β Money format ordering data.
β¨ SYNOPSIS β¨
Include this, periodt:
#include <locale>
Inherited by std::moneypunct< _CharT, _Intl >.
π Public Types π
enum { _S_minus, _S_zero, _S_end }enum part { none, space, symbol, sign, value }
π¦ Static Public Member Functions π¦
static pattern _S_construct_pattern (char __precedes, char __space, char __posn) throw ()
That signature is the whole vibe, no cap.
πΈ Static Public Attributes πΈ
static const char * _S_atomsstatic const pattern _S_default_pattern
π Detailed Description π
Okay so picture this: the class carries an ordered array of 4 fields, and those fields represent the pattern for formatting a money amount. Each field may contain one entry from the part enum.
Out of those fields, symbol, sign, and value must be present β mandatory main characters β and the remaining field must contain either none or space. Thatβs the rule, bestie π«Ά
π See also π
moneypunct::pos_format() and moneypunct::neg_format() β those are where the details of how these fields are interpreted live. iykyk.
π§ Author π§
Author: Generated automatically by Doxygen for libstdc++ from the source code.
The docs literally generated themselves β iconic automated behavior πβ¨
okay bye bestie β this page comes from libstdc++ and the manual tag is std::money_base(3cxx); thereβs no date printed on the original, so Iβm not inventing one, periodt ππ
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms