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

Function MakeDefaultRowAccessor

cpp/src/arrow/util/rows_to_batches.h:34–36  ·  view source on GitHub ↗

Default identity function row accessor. Used to for the common case where the value of each row iterated over is it's self also directly iterable.

Source from the content-addressed store, hash-verified

32// Default identity function row accessor. Used to for the common case where the value
33// of each row iterated over is it's self also directly iterable.
34[[nodiscard]] constexpr inline auto MakeDefaultRowAccessor() {
35 return [](auto& x) -> Result<decltype(std::ref(x))> { return std::ref(x); };
36}
37
38// Meta-function to check if a type `T` is a range (iterable using `std::begin()` /
39// `std::end()`). `is_range<T>::value` will be false if `T` is not a valid range.

Callers 2

rows_to_batches.hFile · 0.85
RowsToBatchesFunction · 0.85

Calls 1

refFunction · 0.85

Tested by

no test coverage detected