Tuple<> Class Reference

#include <tuple.h>

Detailed Description

Specialization for a Tuple without any elements.

Public Types

using Pack = ParameterPack<>
 

Public Member Functions

const StringToString (const FormatStatement *fmt=nullptr) const
 
template<typename HASH = void>
HashInt GetHashCode () const
 
template<typename HASH = void>
UniqueHash GetUniqueHashCode () const
 
Bool operator== (const Tuple &other) const
 
Bool operator< (const Tuple &other) const
 
 MAXON_OPERATOR_COMPARISON (Tuple)
 

Static Public Attributes

static const Int COUNT
 

Member Typedef Documentation

◆ Pack

using Pack = ParameterPack<>

Member Function Documentation

◆ ToString()

const String& ToString ( const FormatStatement fmt = nullptr) const

Formats an empty tuple as a string.

Returns
Always "()"_s.

◆ GetHashCode()

HashInt GetHashCode ( ) const

Calculates hash code of an empty tuple.

Returns
Always 0.

◆ GetUniqueHashCode()

UniqueHash GetUniqueHashCode ( ) const

◆ operator==()

Bool operator== ( const Tuple<> &  other) const

◆ operator<()

Bool operator< ( const Tuple<> &  other) const

◆ MAXON_OPERATOR_COMPARISON()

MAXON_OPERATOR_COMPARISON ( Tuple<>  )

Member Data Documentation

◆ COUNT

const Int COUNT
static