|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
集合器接口模板 更多...
#include <icollector.hpp>
Public 成员函数 | |
| constexpr decltype(auto) | size () const noexcept(noexcept(derived().size())) |
| 获取集合大小 | |
| constexpr bool | empty () const noexcept(noexcept(derived().empty())) |
| 检查集合是否为空 | |
| Public 成员函数 继承自 icomparable< T > | |
| constexpr bool | operator== (const T &rhs) const noexcept(noexcept(derived().equal_to(rhs))) |
| 相等比较运算符 | |
| constexpr bool | operator!= (const T &rhs) const noexcept(noexcept(!(derived().equal_to(rhs)))) |
| 不等比较运算符 | |
| constexpr bool | operator< (const T &rhs) const noexcept(noexcept(derived().less_than(rhs))) |
| 小于比较运算符 | |
| constexpr bool | operator> (const T &rhs) const noexcept(noexcept(rhs.less_than(derived()))) |
| 大于比较运算符 | |
| constexpr bool | operator<= (const T &rhs) const noexcept(noexcept(!(rhs.less_than(derived())))) |
| 小于等于比较运算符 | |
| constexpr bool | operator>= (const T &rhs) const noexcept(noexcept(!(derived().less_than(rhs)))) |
| 大于等于比较运算符 | |
集合器接口模板
| T | 派生类型 |
为集合类型提供统一的接口,包括大小查询、空检查和哈希计算。
TODO: Make icollector replace ranges as the base class for iterable operations
在文件 icollector.hpp 第 30 行定义.
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscardconstexprnoexcept |