Embedded Template Library 1.0
|
Status values for to_arithmetic. More...
#include <to_arithmetic.h>
Public Types | |
typedef TValue | value_type |
typedef etl::to_arithmetic_status | error_type |
typedef etl::unexpected< etl::to_arithmetic_status > | unexpected_type |
Public Member Functions | |
ETL_CONSTEXPR14 | to_arithmetic_result () |
Default constructor. | |
ETL_CONSTEXPR14 | to_arithmetic_result (const to_arithmetic_result &other) |
Copy constructor. | |
ETL_NODISCARD ETL_CONSTEXPR14 bool | has_value () const |
Returns true if the result has a valid value. | |
ETL_NODISCARD ETL_CONSTEXPR14 | operator bool () const |
Returns true if the result has a valid value. | |
ETL_NODISCARD ETL_CONSTEXPR14 value_type | value () const |
ETL_NODISCARD ETL_CONSTEXPR14 | operator value_type () const |
ETL_NODISCARD ETL_CONSTEXPR14 error_type | error () const |
ETL_CONSTEXPR14 to_arithmetic_result & | operator= (value_type value_) |
Assignment from a value. | |
ETL_CONSTEXPR14 to_arithmetic_result & | operator= (unexpected_type status_) |
Assignment from an unexpected_type. | |
|
inline |
Returns the conversion status. One of the following:- Valid Invalid_Radix Invalid_Format Invalid_Float Signed_To_Unsigned Overflow
|
inline |
Returns the value, if valid. Otherwise undefined.
|
inline |
Returns the value, if valid. Otherwise undefined.