Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::RankedBinNodeLike Concept Reference

A binary tree node that also keeps subtree sizes (rank). More...

#include <ah-concepts.H>

Concept definition

template<class Node>
requires(std::remove_cv_t<Node> * p)
{
{ p->getCount() } -> std::convertible_to<std::size_t>;
}
A binary tree node usable by tpl_binNodeUtils.H.
A binary tree node that also keeps subtree sizes (rank).
and
Check uniqueness with explicit hash + equality functors.

Detailed Description

A binary tree node that also keeps subtree sizes (rank).

Adds getCount(), which COUNT(p) wraps. It checks the member rather than COUNT(p): COUNT returns auto &, and a deduced return type is not SFINAE-friendly, so testing it would hard-error instead of yielding false on a node without ranks.

Template Parameters
Nodecandidate node type.

Definition at line 529 of file ah-concepts.H.