random_sample.hpp
Go to the documentation of this file.
auto random_sample(ProbabilityT prob, GeneratorT generator=GeneratorT{}) -> decltype(filter(detail::random_sampler< ProbabilityT, GeneratorT >
Similar to clojure.core/random-sample$1.
Definition: random_sample.hpp:74
#define ABL_DECLTYPE_RETURN(body_expr)
Utility for defining generic functions with a deduced return type, that are composed of a single expr...
Definition: utils.hpp:109
auto filter(PredicateT &&predicate) -> filter_t< estd::decay_t< PredicateT > >
Similar to clojure.core/filter$1.
Definition: filter.hpp:82