Pecunia 0.9.0-alpha.22
Library using the ISO-4217 currency standard & a fixed monetary unit size
|
▼Cstd::exception | STL class |
▼Cpecunia::Error | A representation of a generalised software issue, complete with the location of the problem |
▼Cpecunia::LogicError | Represents a flaw in the logic or a precondition of a function |
Cpecunia::DomainError | Represents an argument that is outside the realm of the purpose of a function |
Cpecunia::InvalidArgument | Represents an argument that is invalid for the state of the function |
Cpecunia::OutOfRange | Represents an argument that is out of range for a container |
▼Cpecunia::RuntimeError | Represents a flaw that prevents a function from fulfilling its postcondition or purpose |
Cpecunia::OverflowError | Represents a flaw that would trigger an overflow operation |
Cpecunia::UnderflowError | Represents a flaw that would trigger an underflow operation |
Cpecunia::Expected< ValueType, ErrorType > | Represents a result value that may either contain a valid value or an error state. Useful for error handling and propagating error states alongside valid results. Provides a way to work with results without using exceptions or nullable types. Ensures type safety by enforcing the presence of either a value or an error |
Cpecunia::FloatingPoint | Represents a safe type for working with floating-point operations |
Cpecunia::Minor | Represents a monetary value in minor units, with associated currency code and sign/affinity |
Cpecunia::Money | A representation of a country’s currency supporting basic arithmetic usage and guaranteeing all operations succeed without a loss of precision, overflow, or underflow |
Cpecunia::MoneyParts | Represents the components of a monetary value separated into major, minor, sub-minor units and its associated currency |
Cpecunia::PECUNIA_EXPORT | Represents a globally accessible, inline constant placeholder for an unexpected error. It is used to handle or signify error states in a consistent and type-safe manner |
Cpecunia::RealNumber | Represents the constituent parts of a real number |
Cpecunia::Unexpected< ErrorType > | Represents an unexpected error value |