17#include "sparrow/primitive_array.hpp"
18#include "sparrow/utils/extension.hpp"
38 using bool8_array = sparrow::primitive_array<int8_t, sparrow::simple_extension<
"arrow.bool8">,
bool>;
41#if defined(__cpp_lib_format)
48 constexpr auto parse(std::format_parse_context& ctx)
55 std::format_to(ctx.out(),
"Bool8 array [{}]: [", ar.size());
56 for (std::size_t i = 0; i < ar.size(); ++i)
60 std::format_to(ctx.out(),
", ");
62 const auto elem = ar[i];
65 std::format_to(ctx.out(),
"{}",
static_cast<bool>(elem.value()) ?
"true" :
"false");
69 std::format_to(ctx.out(),
"null");
72 return std::format_to(ctx.out(),
"]");
78 inline std::ostream& operator<<(std::ostream& os,
const bool8_array& value)
80 os << std::format(
"{}", value);
sparrow::primitive_array< int8_t, sparrow::simple_extension<"arrow.bool8">, bool > bool8_array
Bool8 array using 8-bit storage for boolean values.