Function Dune::XT::Common::from_string¶
-
template<class T>
static inline T Dune::XT::Common::from_string(std::string ss, const size_t size = 0, const size_t cols = 0)¶ Reads an object from a string.
See also: internal::convert_from_string for implementations
:param ss: string to read from :param size: Determines the size of the returning container (size if T is a vector type, rows if T is a matrix type, ignored if T is a scalar type; 0 means automatic). :param cols: Determines the number of columns of the returning matrix if T is a matrix type (0 means automatic; ignored if T is a vector or scalar type).