Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
tpl_random_queue.H File Reference

Random access queue (bag) with O(1) random pop. More...

#include <gsl/gsl_rng.h>
#include <htlist.H>
#include <ah-dry.H>
#include <tpl_dynArray.H>
#include <utility>
#include <ah-errors.H>
Include dependency graph for tpl_random_queue.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Aleph::Random_Set< T >
 Random queue. More...
 
struct  Aleph::Random_Set< T >::Iterator
 Iterator of the items of the queue. More...
 

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 

Functions

template<typename T , template< typename > class C>
auto Aleph::shuffle (const C< T > &c)
 Randomly shuffle a sequence.
 
template<typename T , template< typename > class C>
C< T * > Aleph::shuffle_ptr (const C< T > &c)
 Return a random sequence of pointers to items of a sequence.
 

Detailed Description

Random access queue (bag) with O(1) random pop.

Collection allowing random element extraction. Also defines Random_Set for random set operations.

Author
Leandro Rabindranath León

Definition in file tpl_random_queue.H.