支持随机访问的堆
更多...
#include <rmvl/rmath/ra_heap.hpp>
template<typename Tp, typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
class rm::RaHeap< Tp, Sequence, Compare >
支持随机访问的堆
- 模板参数
-
Tp | 元素类型 |
Sequence | 容器类型,默认为 std::vector<Tp> |
Compare | 比较器可调用对象,默认为 std::less<Tp>,即默认为大根堆 |
◆ const_reference
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ container_type
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ reference
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ size_type
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ value_compare
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ value_type
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ RaHeap()
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ c()
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ emplace()
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
template<typename ValueType >
void rm::RaHeap< Tp, Sequence, Compare >::emplace |
( |
ValueType && |
x | ) |
|
|
inline |
◆ empty()
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
bool rm::RaHeap< Tp, Sequence, Compare >::empty |
( |
| ) |
|
|
inline |
◆ erase()
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ pop()
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ push() [1/2]
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ push() [2/2]
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ size()
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ top()
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
◆ update()
template<typename Tp , typename Sequence = std::vector<Tp>, typename Compare = std::less<Tp>>
该类的文档由以下文件生成: