MCPcopy Create free account
hub / github.com/Profactor/cv-plot / random

Function random

CvPlot/ext/catch2/inc/catch.hpp:4590–4596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4588// but I don't expect users to run into that in practice.
4589template <typename T>
4590typename std::enable_if<std::is_integral<T>::value && !std::is_same<T, bool>::value,
4591GeneratorWrapper<T>>::type
4592random(T a, T b) {
4593 return GeneratorWrapper<T>(
4594 pf::make_unique<RandomIntegerGenerator<T>>(a, b)
4595 );
4596}
4597
4598template <typename T>
4599typename std::enable_if<std::is_floating_point<T>::value,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected