halcheck 1.0
Loading...
Searching...
No Matches

◆ [struct]

struct { ... } halcheck::gen::label

Extends the unique identifiers passed to other random generation functions.

Signature
template<typename F, typename... Args>
lib::finally_t<> label(lib::atom id, F func, Args &&...args); // (2)
Calls a function upon destruction.
Definition scope.hpp:26
static struct halcheck::gen::@9 label
Extends the unique identifiers passed to other random generation functions.
lib::variant< lib::symbol, lib::number > atom
An atom is either a symbol or a number.
Definition atom.hpp:194
Template Parameters
FThe type of function to invoke.
ArgsThe types of arguments to pass.
Parameters
amountThe amount to scale the result of gen::size by.
funcThe function to invoke.
argsThe types of arguments to pass to func.
Returns
  1. lib::effect::invoke<label_effect>(value)
  2. (lib::label(id), lib::invoke(func, std::forward<Args>(args)...))