11 template<
typename T,
size_t N>
12 class TypeTrait<std::array<T, N>> {
14 using Type = std::array<T, N>;
17 return TypeTrait<typename std::remove_const<T>::type>
::create();
20 const static TypeClass & cref_ = TypeTrait<typename std::remove_const<T>::type>
::create();
28 template<
typename T,
size_t N>
42 static void *
ptr(std::array<T, N> &value) {
43 return reinterpret_cast<void *
>(value.data());
46 static const void *
cptr(
const std::array<T, N> &value) {
47 return reinterpret_cast<const void *
>(value.data());
data space object pool
Definition: pool.hpp:42
simple multidimensional dataspace
Definition: simple.hpp:43
static void * ptr(std::array< T, N > &value)
Definition: array.hpp:42
static const void * cptr(const std::array< T, N > &value)
Definition: array.hpp:46
static DataspaceType create(const std::array< T, N > &)
Definition: array.hpp:33
static const DataspaceType & get(const std::array< T, N > &, DataspacePool &)
Definition: array.hpp:37
type trait for dataspace construction
Definition: type_trait.hpp:54
Datatype TypeClass
subtype of Datatype which will be used
Definition: type_trait.hpp:58
static TypeClass create(const T &=T())
create the new type instance
static const TypeClass & get(const T &=T())
reference to const static type instance
Type
Definition: type.hpp:43
top-level namespace of the entire library
Definition: attribute.hpp:45
std::vector< hsize_t > Dimensions
Definition: types.hpp:32