NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
HelperStructLiterals< T > Struct Template Reference

We require this helper struct, as there is no such thing as a negative integer literal (https://stackoverflow.com/a/23430371) We overload the operator- and the implicit conversion operator to be able to use it seamlessly, e.g. CustomClass(-2_s8), or CustomClass(42_s64) More...

#include <StdInt.hpp>

Public Member Functions

constexpr HelperStructLiterals (T v)
 
constexpr T operator- () const
 
constexpr T operator+ () const
 
constexpr operator T () const
 

Public Attributes

val
 

Detailed Description

template<typename T>
struct HelperStructLiterals< T >

We require this helper struct, as there is no such thing as a negative integer literal (https://stackoverflow.com/a/23430371) We overload the operator- and the implicit conversion operator to be able to use it seamlessly, e.g. CustomClass(-2_s8), or CustomClass(42_s64)

Constructor & Destructor Documentation

◆ HelperStructLiterals()

template<typename T >
constexpr HelperStructLiterals< T >::HelperStructLiterals ( v)
inlineexplicitconstexpr

Member Function Documentation

◆ operator T()

template<typename T >
constexpr HelperStructLiterals< T >::operator T ( ) const
inlineconstexpr

◆ operator+()

template<typename T >
constexpr T HelperStructLiterals< T >::operator+ ( ) const
inlineconstexpr

◆ operator-()

template<typename T >
constexpr T HelperStructLiterals< T >::operator- ( ) const
inlineconstexpr

Member Data Documentation

◆ val


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