Tuple<> Class Reference

#include <tuple.h>

详细描述

Specialization for a Tuple without any elements.

Public Types

using  Pack = ParameterPack <>

公共成员函数

const String ToString (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 const Int   COUNT

Member Typedef Documentation

◆  Pack

using Pack = ParameterPack <>

成员函数文档编制

◆  ToString()

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

Formats an empty tuple as a string.

返回
Always "()"_s.

◆  GetHashCode() [1/2]

HashInt GetHashCode ( ) const

Calculates hash code of an empty tuple.

返回
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