MCPcopy Create free account
hub / github.com/apache/arrow / MakeInts

Function MakeInts

cpp/src/arrow/util/value_parsing_benchmark.cc:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101template <typename c_int, typename c_int_limits = std::numeric_limits<c_int>>
102static typename std::enable_if<c_int_limits::is_signed, std::vector<c_int>>::type
103MakeInts(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
111template <typename c_int, typename c_int_limits = std::numeric_limits<c_int>>
112static typename std::enable_if<!c_int_limits::is_signed, std::vector<c_int>>::type

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected