| 100 | |
| 101 | template <typename c_int, typename c_int_limits = std::numeric_limits<c_int>> |
| 102 | static typename std::enable_if<c_int_limits::is_signed, std::vector<c_int>>::type |
| 103 | MakeInts(int32_t num_items) { |
| 104 | std::vector<c_int> out; |
| 105 | // C++ doesn't guarantee that all integer types support std::uniform_int_distribution, |
| 106 | // so use a known type (int64_t) |
| 107 | randint<int64_t, c_int>(num_items, c_int_limits::min(), c_int_limits::max(), &out); |
| 108 | return out; |
| 109 | } |
| 110 | |
| 111 | template <typename c_int, typename c_int_limits = std::numeric_limits<c_int>> |
| 112 | static typename std::enable_if<!c_int_limits::is_signed, std::vector<c_int>>::type |
nothing calls this directly
no outgoing calls
no test coverage detected