safe_conversion.hpp File Reference
#include <cstddef>
#include <fmt/format.h>
#include <limits>
#include <opm/common/ErrorMacros.hpp>
#include <type_traits>
Include dependency graph for safe_conversion.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Opm
 
namespace  Opm::cuistl
 
namespace  Opm::cuistl::detail
 

Functions

int Opm::cuistl::detail::to_int (std::size_t s)
 to_int converts a (on most relevant platforms) 64 bits unsigned size_t to a signed 32 bits signed int More...
 
std::size_t Opm::cuistl::detail::to_size_t (int i)
 to_size_t converts a (on most relevant platforms) a 32 bit signed int to a 64 bits unsigned int More...