Function tuple

Synopsis

#include <include/rapidcheck/gen/Tuple.h>

template <typename... Ts>
Gen< std::tuple< Ts... > > tuple(Gen< Ts >... gens)

Description

Given a number of generators, returns a generator for a tuple with the value types of those generators.

Mentioned in

Source

Lines 136-140 in include/rapidcheck/gen/Tuple.hpp. Line 11 in include/rapidcheck/gen/Tuple.h.

template <typename... Ts>
Gen<std::tuple<Ts...>> tuple(Gen<Ts>... gens) {
  return detail::TupleGen<rc::detail::MakeIndexSequence<sizeof...(Ts)>, Ts...>(
      std::move(gens)...);
}





Add Discussion as Guest

Log in