xte::big_int<T>::parse

Defined in header <xte/math/big_int.hpp>

Constructs a big-integer from a string.


Definition

static constexpr struct {
	template<xte::is_int Radix = xte::uz>
	static constexpr xte::big_int<T> operator()(xte::string_view, Radix = 10, const xte::number_format_config& = {}) noexcept(false);

	template<xte::is_int Radix = xte::uz>
	static constexpr auto with_index(xte::string_view, Radix = 10, const xte::number_format_config& = {}) noexcept(false);
} parse;



Example

static_assert(xte::big_int<>::parse("123") == 123);
[View in Compiler Explorer]