Teuchos - Trilinos Tools Package Version of the Day
Static Public Member Functions
Teuchos::ValueTypeConversionTraits< long, unsigned int > Class Template Reference

Convert from unsigned int to long. More...

#include <Teuchos_as.hpp>

List of all members.

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.

Detailed Description

template<>
class Teuchos::ValueTypeConversionTraits< long, unsigned int >

Convert from unsigned int to long.

Definition at line 2015 of file Teuchos_as.hpp.


Member Function Documentation

static long Teuchos::ValueTypeConversionTraits< long, unsigned int >::convert ( const unsigned int  t) [inline, static]

Convert the given unsigned int to a long.

Warning:
On some platforms (e.g., Windows, or any other platform that implements the LLP64 model), 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 2024 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 2031 of file Teuchos_as.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines