#include <ozo/type_traits.h>
Array concept represents PostgreSQL array.
Array
is a Range or Container with fixed or dynamic size. For the type or template which supposed to represent an array ozo::is_array<>
should be specialized as std::true_type
.
#include <ozo/io/array.h>
should be included for arrays support.
std::vector, std::list, std::array
The std::vector<>
is a dynamic size array and its definition may look like this.
For the std::array<>
the definition is slightely different. The std::array<>
is a fixed-size container, so it should be pointed via ozo::fit_array_size_impl
specialization.