Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Convert an std::string
to a type OutType
.
More...
#include <Teuchos_as.hpp>
Static Public Member Functions | |
static OutType | safeConvert (const std::string &t) |
static OutType | convert (const std::string &t) |
Convert an std::string
to a type OutType
.
This partial specialization assumes that OutType
is default constructible, and that operator>>(std::istream&, OutType&)
has been defined. It does no bounds checking or other input validation.
If you would like to add input validation for a specific output type OutType
, please implement a full specialization. We include many different full specializations in this file, so please check this file first to see if we have already done the work for you.
Definition at line 573 of file Teuchos_as.hpp.
|
inlinestatic |
Definition at line 575 of file Teuchos_as.hpp.
|
inlinestatic |
Definition at line 579 of file Teuchos_as.hpp.