Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
Teuchos::ValueTypeConversionTraits< OutType, std::string > Class Template Reference

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)
 

Detailed Description

template<class OutType>
class Teuchos::ValueTypeConversionTraits< OutType, std::string >

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.

Member Function Documentation

template<class OutType >
static OutType Teuchos::ValueTypeConversionTraits< OutType, std::string >::safeConvert ( const std::string &  t)
inlinestatic

Definition at line 575 of file Teuchos_as.hpp.

template<class OutType >
static OutType Teuchos::ValueTypeConversionTraits< OutType, std::string >::convert ( const std::string &  t)
inlinestatic

Definition at line 579 of file Teuchos_as.hpp.


The documentation for this class was generated from the following file: