54 template<
typename type_t>
85 template<
typename ...args_t>
92 box& operator =(
box&&) =
default;
93 box& operator =(
const box&) =
default;
159 friend auto operator << (std::ostream& os, const
box&
value) -> std::ostream& {
return os <<
value.to_string();}
static auto combine(args_t... values) noexcept -> xtd::usize
Combines values into a hash code.
Definition hash_code.hpp:70
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.hpp:22
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains xtd::convert_string class.
Contains xtd::collections::generic::helpers::equator struct.
Contains xtd::collections::generic::helpers::comparer struct.
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
auto try_parse(const std::basic_string< char > &str, value_t &value) noexcept -> bool
Convert a string into a type.
Definition parse.hpp:416
auto is(xtd::any value) -> bool
Checks if the result of an expression is compatible with a given type.
Definition is.hpp:485
auto parse(const std::string &str) -> value_t
Convert a string into a type.
Definition parse.hpp:34
Contains xtd::hash_code class.
Contains xtd::icomparable interface.
Contains xtd::iequatable interface.
Contains xtd::istringable interface.
Contains classes that define culture-related information, including language, country/region,...
Definition culture_info.hpp:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
const type_t & const_reference
Represents the read_only_span const reference type.
Definition read_only_span.hpp:69
Contains xtd::object class.
Contains xtd::string alias.
Represents a boxed object.
Definition box.hpp:55
static auto try_parse(const xtd::string &value, reference result) noexcept -> bool
Converts the string to its value_type equivalent. A return value indicates whether the conversion suc...
Definition box.hpp:174
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
Definition box.hpp:142
box(args_t &&...args)
Initialize a new xtd::box object with specified value.
Definition box.hpp:86
bool * pointer
Definition box.hpp:69
auto equals(const box &value) const noexcept -> bool override
Indicates whether the current object is equal to another object of the same type.
Definition box.hpp:138
box()=default
Initialize a new xtd::box object.
auto to_string() const noexcept -> xtd::string override
Returns a xtd::string that represents the current object.
const bool * const_pointer
Definition box.hpp:72
auto compare_to(const box &value) const noexcept -> xtd::int32 override
Compares the current instance with another object of the same type.
Definition box.hpp:129
const bool & const_reference
Definition box.hpp:66
box(const_reference value)
Initialize a new xtd::box object with specified value.
Definition box.hpp:82
value_type value
Definition box.hpp:105
bool & reference
Definition box.hpp:63
auto equals(const object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
Definition box.hpp:134
static auto parse(const xtd::string &value) -> value_type
Converts the string to its value_type equivalent.
Definition box.hpp:168
bool value_type
Definition box.hpp:60
Implements a function object for compare data.
Definition comparer.hpp:32
Implements a function object for performing comparisons. Unless specialised, invokes operator== on ty...
Definition equator.hpp:39
Contains typeof_ keyword.
Contains xtd fundamental types.