---
name: "std::money_base"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::money_base/3cxx"
---

# std::money\_base(3cxx)

Money format ordering data.

## NAME

std::money\_base - Money format ordering data.

## SYNOPSIS

`#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** ()\

### Static Public Attributes

**static** const char \* **\_S\_atoms**\
 **static** const pattern **\_S\_default\_pattern**\

## Detailed Description

Money format ordering data.

This class contains an ordered array of 4 fields to represent the pattern for formatting a money amount. Each field may contain one entry from the part enum. symbol, sign, and value must be present and the remaining field must contain either none or space.

**See also**

moneypunct::pos\_format() and moneypunct::neg\_format() for details of how these fields are interpreted.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
