The xtd::reference_wrapper_object is a reference wrapper as std::reference_wrapper.
Public Aliases | |
| using | base_type |
| Represents the base type (std::reference_wrapper<type_t>). | |
| using | type |
| Represent the referenced type. | |
| using | reference_type |
| Represent the referenced type. | |
Public Static Fields | |
| static const reference_wrapper_object | empty |
| Represents the empty xtd::reference_wrapper_object. This field is constant. | |
Public Operators | |
| auto | operator= (const reference_wrapper_object &value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object value. | |
| auto | operator= (reference_wrapper_object &value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object value. | |
| auto | operator= (reference_wrapper_object &&value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object value. | |
| template<typename value_t> | |
| auto | operator= (const reference_wrapper_object< value_t > &value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object value. | |
| template<typename value_t> | |
| auto | operator= (reference_wrapper_object< value_t > &value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object value. | |
| template<typename value_t> | |
| auto | operator= (reference_wrapper_object< value_t > &&value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object value. | |
| template<typename value_t> | |
| auto | operator= (const std::reference_wrapper< value_t > &value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
| template<typename value_t> | |
| auto | operator= (std::reference_wrapper< value_t > &value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
| auto | operator= (const base_type &value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
| auto | operator= (base_type &value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
| template<typename value_t> | |
| auto | operator= (value_t &&value) noexcept -> reference_wrapper_object & |
| Assignment operator with specified xtd::reference_wrapper_object::base_type value. | |
| operator type & () const | |
| Gets the stored object. | |
| operator bool () const noexcept | |
| Checks if the stored reference is not empty. | |
Public Constructors | |
| reference_wrapper_object () noexcept=default | |
| Initializes a new instance of the xtd::reference_wrapper_object class. | |
| reference_wrapper_object (xtd::null_ptr null) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object class with specified null pointer. | |
| template<typename value_t> | |
| reference_wrapper_object (value_t &&value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object class with specified reference. | |
| reference_wrapper_object (reference_wrapper_object &value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
| reference_wrapper_object (const reference_wrapper_object &value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
| reference_wrapper_object (reference_wrapper_object &&value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
| template<typename value_t> | |
| reference_wrapper_object (reference_wrapper_object< value_t > &value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
| template<typename value_t> | |
| reference_wrapper_object (const reference_wrapper_object< value_t > &value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
| template<typename value_t> | |
| reference_wrapper_object (reference_wrapper_object< value_t > &&value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object. | |
| reference_wrapper_object (base_type &value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
| reference_wrapper_object (const base_type &value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
| reference_wrapper_object (base_type &&value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
| template<typename value_t> | |
| reference_wrapper_object (std::reference_wrapper< value_t > &value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
| template<typename value_t> | |
| reference_wrapper_object (const std::reference_wrapper< value_t > &value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
| template<typename value_t> | |
| reference_wrapper_object (std::reference_wrapper< value_t > &&value) noexcept | |
| Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object. | |
Public Properties | |
| auto | is_empty () const noexcept -> bool |
| Checks if the stored reference is empty. | |
| auto | reference () const -> const base_type & |
| Returns the underlying base type reference. | |
| auto | reference () -> base_type & |
| Returns the underlying base type reference. | |
Public Methods | |
| auto | compare_to (const reference_wrapper_object &obj) const noexcept -> xtd::int32 override |
| Compares the current instance with another object of the same type. | |
| auto | equals (const xtd::object &value) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const reference_wrapper_object &value) const noexcept -> bool override |
| Indicates whether the current object is equal to another object of the same type. | |
| auto | get () const -> type & |
| Gets the stored reference. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| auto | reset () noexcept -> void |
| Resets the current object. Set the current object to null. | |
| template<typename value_t> | |
| auto | reset (value_t &&value) noexcept -> void |
| Resets the current object. Set the current object with specified reference. | |
| auto | reset (xtd::null_ptr null) noexcept -> void |
| Resets the current object. Set the current object with specified null value. | |
| auto | swap (reference_wrapper_object &value) noexcept -> void |
| Swaps this current instance with specified reference object. | |
| auto | to_object () const -> type_t & |
| Gets the stored object. | |
| template<typename target_t> | |
| auto | to_object () const -> target_t |
| Gets the stored object with specified target_t type. | |
| auto | to_reference () const -> type & |
| Gets the stored reference. | |
| template<typename target_t> | |
| auto | to_reference () const -> target_t |
| Gets the stored reference with specified target_t type. | |
| auto | to_string () const noexcept -> xtd::string override |
| Returns a xtd::string that represents the current object. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | compare_to (const type_t &obj) const noexcept -> xtd::int32=0 |
| Compares the current instance with another object of the same type. | |
| virtual auto | equals (const type_t &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
| using xtd::reference_wrapper_object< type_t >::base_type |
Represents the base type (std::reference_wrapper<type_t>).
| using xtd::reference_wrapper_object< type_t >::type |
Represent the referenced type.
| using xtd::reference_wrapper_object< type_t >::reference_type |
Represent the referenced type.
|
defaultnoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class.
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified null pointer.
| null | The null pointer. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference.
| value | The reference. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
| value | The reference object. |
|
inlinenoexcept |
Initializes a new instance of the xtd::reference_wrapper_object::base_type class with specified reference object.
| value | The reference object. |
|
inlinenodiscardnoexcept |
Checks if the stored reference is empty.
|
inlinenodiscard |
Returns the underlying base type reference.
|
inlinenodiscard |
Returns the underlying base type reference.
|
inlinenodiscardoverridenoexcept |
Compares the current instance with another object of the same type.
| obj | An object to compare with this instance. |
| Value | Condition |
|---|---|
| Less than zero | This instance is less than obj. |
| Zero | This instance is equal to obj. |
| Greater than zero | This instance is greater than obj. |
|
inlinenodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
inlinenodiscardoverridenoexcept |
Indicates whether the current object is equal to another object of the same type.
| obj | An object to compare with this object. |
|
inlinenodiscard |
Gets the stored reference.
| xtd::null_pointer_exception | If xtd::reference_wrapper_object is empty. |
|
inlinenodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
inlinenoexcept |
Resets the current object. Set the current object to null.
|
inlinenoexcept |
Resets the current object. Set the current object with specified reference.
| value | The reference to assign the current object. It can be null. |
|
inlinenoexcept |
Resets the current object. Set the current object with specified null value.
| null | The null value. |
|
inlinenoexcept |
Swaps this current instance with specified reference object.
| value | The reference object to swap with this current instance. |
|
inlinenodiscard |
Gets the stored object.
| xtd::null_pointer_exception | If xtd::reference_wrapper_object is empty. |
|
nodiscard |
Gets the stored object with specified target_t type.
| xtd::cast_exception | If the current object can't be casted in target_t. |
|
inlinenodiscard |
Gets the stored reference.
|
nodiscard |
Gets the stored reference with specified target_t type.
| xtd::cast_exception | If the current object can't be casted in target_t. |
|
nodiscardoverridevirtualnoexcept |
Returns a xtd::string that represents the current object.
Reimplemented from xtd::object.
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
| value | The value to assign. |
|
inlinenoexcept |
Assignment operator with specified xtd::reference_wrapper_object::base_type value.
| value | The value to assign. |
|
inline |
Gets the stored object.
| xtd::null_pointer_exception | If xtd::reference_wrapper_object is empty. |
|
inlineexplicitnoexcept |
Checks if the stored reference is not empty.
|
static |
Represents the empty xtd::reference_wrapper_object. This field is constant.