8#if defined(_MSC_VER) && defined(max)
9# if __cplusplus < 202302L
10# pragma message("The macro `max` is defined. If you include the `Windows.h` file, please define the 'NOMINMAX' constant before including `Windows.h`. xtd will undef the `max` macro.")
12# warning "The macro `max` is defined. If you include the `Windows.h` file, please define the 'NOMINMAX' constant before including `Windows.h`. xtd will undef the `max` macro."
54 template<
class type_t>
71 static constexpr type_t
max_value = std::numeric_limits<type_t>::max();
74 static constexpr type_t
min_value = std::numeric_limits<type_t>::lowest();
Contains xtd::box struct.
Represents a boxed integer object.
Definition box_integer.hpp:55
static constexpr xtd::byte max_value
Definition box_integer.hpp:71
static bool is_valid(xtd::signed_integer auto value) noexcept
Determines whether the specified signed integral value is within the range of type_t.
Definition box_integer.hpp:85
static type_t parse(const xtd::string &value, xtd::number_styles styles)
Converts the string to its type_t equivalent.
Definition box_integer.hpp:103
static bool is_valid(xtd::unsigned_integer auto value) noexcept
Determines whether the specified unsigned integral value is within the range of type_t.
Definition box_integer.hpp:94
static bool try_parse(const xtd::string &value, type_t &result, xtd::number_styles styles)
Converts the string to its type_t equivalent.
Definition box_integer.hpp:109
static constexpr xtd::byte min_value
Definition box_integer.hpp:74
Concept signed_integer.
Definition signed_integer.hpp:78
Concept unsigned_integer.
Definition unsigned_integer.hpp:78
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
std::int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
std::uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
number_styles
Determines the styles permitted in numeric string arguments that are passed to the xtd::parse and xtd...
Definition number_styles.hpp:16
value_t parse(const std::string &str)
Convert a string into a type.
Definition parse.hpp:34
bool try_parse(const std::basic_string< char > &str, value_t &value) noexcept
Convert a string into a type.
Definition parse.hpp:416
Contains xtd::int64 type.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::number_styles enum class.
Contains xtd::signed_integer concept.
Represents a boxed object.
Definition box.hpp:56
value_type value
Gets or sets the underlying value.
Definition box.hpp:106
Contains xtd::unsigned_integer concept.