numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
safe_cast.h File Reference

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"
+ Include dependency graph for safe_cast.h:
+ This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Definition of safe_cast function.

Definition in file safe_cast.h.