15 #ifndef SERIALBOX_CORE_ARRAY_H 16 #define SERIALBOX_CORE_ARRAY_H 20 #include <type_traits> 41 for(std::size_t i = 0; i < array.size() - 1; ++i)
42 ss << array[i] <<
", ";
52 struct IsArray :
public std::false_type {};
60 template <
class T,
bool IsArray>
61 struct MakePrimitiveImpl {
62 using type =
typename T::value_type;
66 struct MakePrimitiveImpl<T, false> {
75 using type =
typename internal::MakePrimitiveImpl<T, IsArray<T>::value>::type;
static std::string toString(const Array< T > &array)
Convert to string.
std::vector< T > Array
Array class used by serialbox to store meta-information.
Namespace of the serialbox library.
Return the primtive type (T::value_type) if T is an Array or T otherwise.
Check if type T is an Array.