template<typename T>
BaseConvert class
| Template parameters | |
|---|---|
| T | the type of number |
Contents
Utility class to convert numbers in bases different from decimal WARNING: This class does not work on decimal types
Constructors, destructors, conversion operators
- BaseConvert(String base) explicit
Public functions
- auto FromString(const String& nbr) -> T
- auto ToString(T nbr) -> String
Function documentation
template<typename T>
bpf:: BaseConvert<T>:: BaseConvert(String base) explicit
| Parameters | |
|---|---|
| base | the set of characters to use for the base |
Constructs an instance of BaseConvert
template<typename T>
T bpf:: BaseConvert<T>:: FromString(const String& nbr)
| Parameters | |
|---|---|
| nbr | the number string |
| Returns | the converted number |
Converts a number string to an actual number type