|
rippled
|
Sets the new scale and restores the old scale when it leaves scope. More...
#include <Number.h>
Public Member Functions | |
| NumberMantissaScaleGuard (MantissaRange::mantissa_scale scale) noexcept | |
| ~NumberMantissaScaleGuard () | |
| NumberMantissaScaleGuard (NumberMantissaScaleGuard const &)=delete | |
| NumberMantissaScaleGuard & | operator= (NumberMantissaScaleGuard const &)=delete |
Private Attributes | |
| MantissaRange::mantissa_scale const | saved_ |
Sets the new scale and restores the old scale when it leaves scope.
If you think you need to use this class outside of unit tests, no you don't.
|
explicitnoexcept |
| xrpl::NumberMantissaScaleGuard::~NumberMantissaScaleGuard | ( | ) |
|
delete |
|
delete |
|
private |