Features
|
#include <features.hpp>
Public Member Functions | |
combination_t (const std::vector< T > symbols, std::size_t k) | |
void | initialize () |
std::size_t | k () const |
bool | next () |
std::vector< T > | operator() () const |
Class template that generates all combinations of size k for symbols.
|
inline |
Constructor that accepts a vector with symbols and size k.
|
inline |
Member function for initializing a combination.
|
inline |
Returns the size of the combination.
|
inline |
Returns true, if a succeeding state is available for the combination.
|
inline |
Function call operator that returns a vector containing the symbols of the actual combination.