|
Teuchos - Trilinos Tools Package
Version of the Day
|
Convert from unsigned int to long.
More...
#include <Teuchos_as.hpp>
Static Public Member Functions | |
| static long | convert (const unsigned int t) |
Convert the given unsigned int to a long. | |
| static long | safeConvert (const unsigned int t) |
Convert from unsigned int to long, checking for overflow first. | |
Convert from unsigned int to long.
Definition at line 2033 of file Teuchos_as.hpp.
| static long Teuchos::ValueTypeConversionTraits< long, unsigned int >::convert | ( | const unsigned int | t | ) | [inline, static] |
Convert the given unsigned int to a long.
unsigned int integer values may overflow long. You should use safeConvert() if you aren't sure that the given unsigned int value fits in a long. Definition at line 2042 of file Teuchos_as.hpp.
| static long Teuchos::ValueTypeConversionTraits< long, unsigned int >::safeConvert | ( | const unsigned int | t | ) | [inline, static] |
Convert from unsigned int to long, checking for overflow first.
Definition at line 2049 of file Teuchos_as.hpp.
1.7.6.1