Faker C++
|
Classes | |
struct | WeightedElement |
Get a random element by weight from a vector. More... | |
Concepts | |
concept | input_range_with_faster_size_compute_than_linear_rng |
Functions | |
template<input_range_with_faster_size_compute_than_linear_rng Range> | |
decltype(auto) | randomElement (Range &&range) |
template<std::ranges::input_range Range> | |
auto | randomElement (Range &&range) |
template<class T > | |
T | weightedRandomElement (const std::vector< WeightedElement< T > > &data) |
decltype(auto) faker::helper::randomElement | ( | Range && | range | ) |
auto faker::helper::randomElement | ( | Range && | range | ) |
T faker::helper::weightedRandomElement | ( | const std::vector< WeightedElement< T > > & | data | ) |