Utilities

constexpr struct zug::tuplify_t zug::tuplify

Function object that forwards its argument if one single argument passed, otherwise it returns a tuple with all the passed in arguments.

constexpr struct zug::noop_t zug::noop

Function object that takes any number of arguments and does nothing, returning void.

constexpr struct zug::identity_t zug::identity

Function object that returns the value that is passed to it.

constexpr struct zug::identity__t zug::identity_

Similar to identity, but it never returns a reference to the pased in value.

template <typename T>
auto zug::constantly(T &&value)

Returns a function with no arguments that always returns the value.