![]() |
Faker C++
|


Go to the source code of this file.
Classes | |
| struct | faker::helper::WeightedElement< T > |
| Get a random element by weight from a vector. More... | |
Namespaces | |
| namespace | faker |
| namespace | faker::helper |
Concepts | |
| concept | faker::helper::input_range_with_faster_size_compute_than_linear_rng |
Functions | |
| template<input_range_with_faster_size_compute_than_linear_rng Range> | |
| decltype(auto) | faker::helper::randomElement (Range &&range) |
| template<std::ranges::input_range Range> | |
| auto | faker::helper::randomElement (Range &&range) |
| template<input_range_with_faster_size_compute_than_linear_rng Range1, input_range_with_faster_size_compute_than_linear_rng Range2> | |
| decltype(auto) | faker::helper::randomElement (Range1 &&range1, Range2 &&range2) |
| Get a random element from one of two ranges, without concatenating them. | |
| template<class T > | |
| T | faker::helper::weightedRandomElement (const std::vector< WeightedElement< T > > &data) |