numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Definition of safe_cast function. More...
#include <limits>
#include <type_traits>
#include <typeinfo>
#include <fmt/format.h>
#include "num_collect/base/concepts/integral.h"
#include "num_collect/base/exception.h"
#include "num_collect/logging/logging_macros.h"
Go to the source code of this file.
Classes | |
class | num_collect::util::unsafe_cast |
Class of exception on unsafe casts. More... | |
Namespaces | |
namespace | num_collect |
Namespace of num_collect source codes. | |
namespace | num_collect::util |
Namespace of utilities. | |
Functions | |
template<base::concepts::integral To, base::concepts::integral From> | |
auto | num_collect::util::safe_cast (const From &value) -> To |
Cast safely. | |
Definition of safe_cast function.
Definition in file safe_cast.h.