VPTissue Reference Manual
signum.h File Reference

Math signum function. More...

#include <type_traits>
Include dependency graph for signum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SimPT_Sim
 Namespace for the core simulator.
 
 SimPT_Sim::Util
 Namespace for miscellaneous utilities.
 

Functions

template<typename T >
constexpr int SimPT_Sim::Util::signum (T x, std::false_type)
 Overload for unsigned types. More...
 
template<typename T >
constexpr int SimPT_Sim::Util::signum (T x, std::true_type)
 Overload for signed types. More...
 
template<typename T >
constexpr int SimPT_Sim::Util::signum (T x)
 Select particular overload via tag dispatch. More...
 

Detailed Description

Math signum function.

Definition in file signum.h.