Function Dune::XT::Common::serialize

Function template Dune::XT::Common::serialize

template<class T, class V>
typename std::enable_if<is_vector<V>::value && is_arithmetic<T>::value, std::vector<typename VectorAbstraction<V>::S>>::type Dune::XT::Common::serialize(const V &vec)

serializes the entries of a vector into a std::vector of scalar type T

Function template Dune::XT::Common::serialize

template<class V>
typename std::enable_if_t<is_vector<V>::value, std::vector<typename VectorAbstraction<V>::S>> Dune::XT::Common::serialize(const V &vec)

serializes a vector into a std::vector of its own scalar type