GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::money_base(3) C++ Standard Libary std::money_base(3)

std::money_base - std::money_base


Defined in header <locale>
class money_base;


The class std::money_base provides constants which are inherited and used by the
std::moneypunct, std::money_get and std::money_put facets.


Member type Definition
enum part { none, space, symbol, sign, value }; unscoped enumeration type
struct pattern { char field[4]; }; the monetary format type


Enumeration constant Definition
none whitespace is permitted but not required except in the last
position, where whitespace is not permitted
space one or more whitespace characters are required
symbol the sequence of characters returned by moneypunct::curr_symbol
is required
the first of the characters returned by
sign moneypunct::positive_sign or moneypunct::negative_sign is
required
value the absolute numeric monetary value is required


The monetary format is an array of four chars convertible to std::money_base::part.
In that sequence, each of symbol, sign, and value appears exactly once, and either
space or none appears in the remaining position. The value none, if present, is not
first; the value space, if present, is neither first nor last.


The default format, returned by the standard specializations of std::moneypunct is
{symbol, sign, none, value}


defines monetary formatting parameters used by std::money_get and
moneypunct std::money_put
(class template)
money_get parses and constructs a monetary value from an input character sequence
(class template)
money_put formats a monetary value for output as a character sequence
(class template)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.