|
Teuchos - Trilinos Tools Package Version of the Day
|
Convert an std::string to an unsigned long long.
More...
#include <Teuchos_as.hpp>
Static Public Member Functions | |
| static unsigned long long | safeConvert (const std::string &t) |
Convert the given std::string to an unsigned long long, with checks. More... | |
| static unsigned long long | convert (const std::string &t) |
Convert the given std::string to an unsigned long long. More... | |
Convert an std::string to an unsigned long long.
We assume the string stores a base-10 integer, if it stores an integer at all.
Definition at line 723 of file Teuchos_as.hpp.
|
inlinestatic |
Convert the given std::string to an unsigned long long, with checks.
If the string overflows unsigned long long, this throws std::range_error. If it does not contain an integer, this throws std::invalid_argument.
Definition at line 730 of file Teuchos_as.hpp.
|
inlinestatic |
Convert the given std::string to an unsigned long long.
Definition at line 754 of file Teuchos_as.hpp.