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

Definition of multiply_safely function. More...

+ Include dependency graph for multiply_safely.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  num_collect
 Namespace of num_collect source codes.
 
namespace  num_collect::util
 Namespace of utilities.
 

Functions

template<base::concepts::integral T>
constexpr auto num_collect::util::multiply_safely (T a, T b) -> T
 Multiply two integers with check of overflow.
 

Detailed Description

Definition of multiply_safely function.

Definition in file multiply_safely.h.