Nektar++
Namespaces | Functions
CheckedCast.hpp File Reference
#include <LibUtilities/BasicUtils/ErrorUtil.hpp>
#include <limits>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  Nektar
 
namespace  Nektar::LibUtilities
 

Functions

template<class To , class Ti , class = typename std::enable_if< std::is_floating_point< typename std::remove_reference<Ti>::type>::value && std::is_integral< typename std::remove_reference<To>::type>::value>::type>
To Nektar::LibUtilities::checked_cast (const Ti param)
 checked cast from float types only to int types More...