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
 
HashInt GetHashCode () const
 
template<typename HASH >
HashInt GetHashCode () 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() [1/2]

HashInt GetHashCode ( ) const

Calculates hash code of an empty tuple.

Returns
Always 0.

◆ GetHashCode() [2/2]

HashInt GetHashCode ( ) 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