ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::selectable Concept Reference

select( i ), the key of rank \( i \) (the order statistics); with an augmentation G, augSelect( p ), the first key whose prefix of the values of G satisfies the monotone predicate \( p \) More...

#include <ADS/Capabilities.h>

Concept definition

template< class S , class G = void >
concept selectable =
( std::is_void_v< G > &&
requires( const S & s , std::size_t i )
{ s.select( i ); } ) ||
( ! std::is_void_v< G > &&
requires( const S & s , bool ( *p )( const typename G::Value & ) )
{
s.augSelect( p );
} )
select( i ), the key of rank (the order statistics); with an augmentation G, augSelect( p ),...
Definition Capabilities.h:504

Detailed description

select( i ), the key of rank \( i \) (the order statistics); with an augmentation G, augSelect( p ), the first key whose prefix of the values of G satisfies the monotone predicate \( p \)