Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JMATH::JUnity Struct Reference

Auxiliary class to assign unity value. More...

#include <JUnity.hh>

Public Member Functions

 JUnity ()
 Default constructor.
 
template<class T >
 operator T () const
 Type conversion operator.
 

Detailed Description

Auxiliary class to assign unity value.

Definition at line 124 of file JUnity.hh.

Constructor & Destructor Documentation

◆ JUnity()

JMATH::JUnity::JUnity ( )
inline

Default constructor.

Definition at line 128 of file JUnity.hh.

129 {}

Member Function Documentation

◆ operator T()

template<class T >
JMATH::JUnity::operator T ( ) const
inline

Type conversion operator.

Returns
unity

Definition at line 138 of file JUnity.hh.

139 {
140 return getUnity<T>();
141 }
T getUnity()
Get unity value for a given data type.
Definition JUnity.hh:70

The documentation for this struct was generated from the following file: