|
Teuchos - Trilinos Tools Package
Version of the Day
|
Convert double to int, without compiler warnings, with optional range check. More...
#include <Teuchos_as.hpp>
Static Public Member Functions | |
| static int | convert (const double t) |
| Convert the given double to an int. | |
| static int | safeConvert (const double t) |
| Convert the given double to an int, checking for overflow first. | |
Convert double to int, without compiler warnings, with optional range check.
Definition at line 306 of file Teuchos_as.hpp.
| static int Teuchos::ValueTypeConversionTraits< int, double >::convert | ( | const double | t | ) | [inline, static] |
Convert the given double to an int.
Definition at line 313 of file Teuchos_as.hpp.
| static int Teuchos::ValueTypeConversionTraits< int, double >::safeConvert | ( | const double | t | ) | [inline, static] |
Convert the given double to an int, checking for overflow first.
Definition at line 320 of file Teuchos_as.hpp.
1.7.6.1