43#if defined(__cpp_lib_format)
48struct std::formatter<
sparrow::bool8_array>
50 constexpr auto parse(std::format_parse_context& ctx)
57 std::format_to(ctx.out(),
"Bool8 array [{}]: [", ar.size());
58 for (std::size_t i = 0; i < ar.size(); ++i)
62 std::format_to(ctx.out(),
", ");
64 const auto elem = ar[i];
67 std::format_to(ctx.out(),
"{}",
static_cast<bool>(elem.value()) ?
"true" :
"false");
71 std::format_to(ctx.out(),
"null");
74 return std::format_to(ctx.out(),
"]");
82 os << std::format(
"{}", value);
std::ostream & operator<<(std::ostream &os, const nullval_t &)
primitive_array_impl< T, Ext, T2 > primitive_array
Array of values of whose type has fixed binary size.
primitive_array< int8_t, simple_extension<"arrow.bool8">, bool > bool8_array
Bool8 array using 8-bit storage for boolean values.