libzed 1.9.9
A general-purpose library for quick and simple data manipulation.
 
Loading...
Searching...
No Matches
z::util Namespace Reference

Section containing utility classes. More...

Classes

class  dictionary
 A class for performing searches on a dictionary of words. More...
 
class  dictRange
 A class to allow efficient, custom dictionary search functions. More...
 
class  generic
 A class for simple storage and manipulation of data regardless of type. More...
 
struct  nonnumeric
 Exception thrown when attempting a numeric operation on a non-number. More...
 
class  progress
 A class for outputting a progress bar to the terminal. More...
 

Functions

template<typename T , typename U , typename V >
core::generator< T, bool > chain (core::generator< T, U > &first, core::generator< T, V > &second) noexcept
 Chains two generators together.
 

Detailed Description

Section containing utility classes.

This section adds extra classes and functionality for more complicated data manipulation or representation.

Function Documentation

◆ chain()

template<typename T , typename U , typename V >
core::generator< T, bool > z::util::chain ( core::generator< T, U > &  first,
core::generator< T, V > &  second 
)
noexcept

Chains two generators together.

This function takes two generators and chains them together, so that multiple generators can be used as a single generator.

Parameters
firstThe first generator.
secondThe second generator.
Examples
chainGenerators.cpp.