Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::types Namespace Reference

Common types. More...

Functions

template<typename T , typename = typename std::enable_if<std::is_enum<T>::value, T>::type>
constexpr std::underlying_type< T >::type EnumToVal (T enum_val)
 Convert enum class constant to the underlying integral type value.
 

Detailed Description

Common types.

Function Documentation

◆ EnumToVal()

template<typename T , typename = typename std::enable_if<std::is_enum<T>::value, T>::type>
std::underlying_type< T >::type fpsdk::common::types::EnumToVal ( T enum_val)
constexpr

Convert enum class constant to the underlying integral type value.

Template Parameters
TThe enum class type
Parameters
[in]enum_valThe enum constant
Returns
the integral value of the enum constant as the value of the underlying type

Definition at line 46 of file types.hpp.

Referenced by fpsdk::common::gnss::GnssSvNrBandSignalToSatSig(), and fpsdk::common::gnss::GnssSvNrToSat().