10 #ifndef TEUCHOS_IOSTREAM_HELPERS_HPP
11 #define TEUCHOS_IOSTREAM_HELPERS_HPP
25 template<
class EnumType>
30 enum_value =
static_cast<EnumType
>(intval);
38 #define TEUCHOS_ENUM_INPUT_STREAM_OPERATOR(ENUMTYPE) \
40 std::istream& operator>>(std::istream& std_is, ENUMTYPE& enum_value) \
41 { return Teuchos::enumIstreamExtractor(std_is, enum_value); }
44 #endif // TEUCHOS_IOSTREAM_HELPERS_HPP
std::istream & enumIstreamExtractor(std::istream &std_is, EnumType &enum_value)