CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
System::ValueTuple< Args > Class Template Reference

Class that represents a ValueTuple data structure. More...

#include <value_tuple.h>

Inherits System::Details::BoxableObjectBase.

Public Member Functions

 ValueTuple ()
 
template<typename = std::enable_if_t<(tuple_size > 0)>>
 ValueTuple (Args... args)
 Constructs a tuple object. More...
 
template<std::size_t Index>
std::tuple_element_t< Index, tuple_t > & Item ()
 Gets the reference to value of the ValueTuple object's component. More...
 
template<std::size_t Index>
const std::tuple_element_t< Index, tuple_t > & Item () const
 Gets the value of the ValueTuple object's component. More...
 
bool Equals (SharedPtr< Object > obj)
 Determines if the current and the specified objects are identical. More...
 
System::String ToString () const
 
int32_t GetHashCode () const
 
const TypeInfoGetType () const
 
bool operator== (const ValueTuple &other) const
 
template<typename ... OtherArgs>
ValueTupleoperator= (const ValueTuple< OtherArgs... > &otherTuple)
 

Static Public Member Functions

static const TypeInfoType ()
 Returns a reference to the TypeInfo object representing the ValueTuple class type information. More...
 

Detailed Description

template<typename ... Args>
class System::ValueTuple< Args >

Class that represents a ValueTuple data structure.

Constructor & Destructor Documentation

◆ ValueTuple() [1/2]

template<typename ... Args>
System::ValueTuple< Args >::ValueTuple ( )
inline

◆ ValueTuple() [2/2]

template<typename ... Args>
template<typename = std::enable_if_t<(tuple_size > 0)>>
System::ValueTuple< Args >::ValueTuple ( Args...  args)
inline

Constructs a tuple object.

Parameters
argsThe arguments that are passed to the constructor of the ValueTuple object being constructed

Member Function Documentation

◆ Equals()

template<typename ... Args>
bool System::ValueTuple< Args >::Equals ( SharedPtr< Object obj)
inline

Determines if the current and the specified objects are identical.

Parameters
objAn object to compare the current object with
Returns
True if the current and the specified objects are identical, otherwise - false

◆ GetHashCode()

template<typename ... Args>
int32_t System::ValueTuple< Args >::GetHashCode ( ) const
inline

◆ GetType()

template<typename ... Args>
const TypeInfo & System::ValueTuple< Args >::GetType ( ) const
inline

◆ Item() [1/2]

template<typename ... Args>
template<std::size_t Index>
std::tuple_element_t< Index, tuple_t > & System::ValueTuple< Args >::Item ( )
inline

Gets the reference to value of the ValueTuple object's component.

Template Parameters
IndexThe number of item the class should return.

◆ Item() [2/2]

template<typename ... Args>
template<std::size_t Index>
const std::tuple_element_t< Index, tuple_t > & System::ValueTuple< Args >::Item ( ) const
inline

Gets the value of the ValueTuple object's component.

Template Parameters
IndexThe number of item the class should return.

◆ operator=()

template<typename ... Args>
template<typename ... OtherArgs>
ValueTuple & System::ValueTuple< Args >::operator= ( const ValueTuple< OtherArgs... > &  otherTuple)
inline

◆ operator==()

template<typename ... Args>
bool System::ValueTuple< Args >::operator== ( const ValueTuple< Args > &  other) const
inline

◆ ToString()

template<typename ... Args>
System::String System::ValueTuple< Args >::ToString ( ) const
inline

◆ Type()

template<typename ... Args>
static const TypeInfo & System::ValueTuple< Args >::Type ( )
inlinestatic

Returns a reference to the TypeInfo object representing the ValueTuple class type information.