|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
空元组特化 更多...
#include <tuple.hpp>
Public 成员函数 | |
| constexpr | tuple () noexcept=default |
| 默认构造函数 | |
| constexpr | tuple (const tuple &) noexcept=default |
| 拷贝构造函数 | |
| template<typename Tag, enable_if_t< is_same< Tag, exact_arg_construct_tag >::value, int > = 0> | |
| constexpr | tuple (Tag) noexcept |
| 精确参数构造标签构造函数 | |
| MSTL_CONSTEXPR14 tuple & | operator= (const tuple &) noexcept=default |
| 拷贝赋值运算符 | |
| MSTL_NODISCARD MSTL_ALWAYS_INLINE constexpr bool | equal_to (const tuple &) const noexcept |
| 比较两个空元组是否相等 | |
| MSTL_NODISCARD MSTL_ALWAYS_INLINE constexpr bool | less_to (const tuple &) const noexcept |
| 比较两个空元组的大小关系 | |
| MSTL_ALWAYS_INLINE MSTL_CONSTEXPR14 void | swap (tuple &) noexcept |
| 交换操作 | |
| MSTL_NODISCARD MSTL_ALWAYS_INLINE constexpr bool | operator== (const tuple &rhs) const noexcept |
| 相等比较运算符 | |
| MSTL_NODISCARD MSTL_ALWAYS_INLINE constexpr bool | operator< (const tuple &rhs) const noexcept |
| 小于比较运算符 | |
| MSTL_NODISCARD MSTL_ALWAYS_INLINE constexpr size_t | to_hash () const noexcept |
| 计算空元组的哈希值 | |
| Public 成员函数 继承自 icomparable< tuple<> > | |
| MSTL_NODISCARD constexpr bool | operator== (const tuple<> &rhs) const noexcept(noexcept(derived()==rhs)) |
| 相等比较运算符 | |
| MSTL_NODISCARD constexpr bool | operator!= (const tuple<> &rhs) const noexcept(noexcept(!(*this==rhs))) |
| 不等比较运算符 | |
| MSTL_NODISCARD constexpr bool | operator< (const tuple<> &rhs) const noexcept(noexcept(derived()< rhs)) |
| 小于比较运算符 | |
| MSTL_NODISCARD constexpr bool | operator> (const tuple<> &rhs) const noexcept(noexcept(rhs< derived())) |
| 大于比较运算符 | |
| MSTL_NODISCARD constexpr bool | operator<= (const tuple<> &rhs) const noexcept(noexcept(!(derived() > rhs))) |
| 小于等于比较运算符 | |
| MSTL_NODISCARD constexpr bool | operator>= (const tuple<> &rhs) const noexcept(noexcept(!(derived()< rhs))) |
| 大于等于比较运算符 | |
| Public 成员函数 继承自 ihashable< tuple<> > | |
| MSTL_NODISCARD constexpr size_t | to_hash () const noexcept(noexcept(derived().to_hash())) |
| 获取对象的哈希值 | |
|
inlineexplicitconstexprnoexcept |