Humidistat
Arduino firmware for a humidistat (humidity controller)
Loading...
Searching...
No Matches
advanceEnum.h File Reference
#include <stdint.h>
Include dependency graph for advanceEnum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
void advanceEnum (T &e, int8_t n=1)
 Cycle through (advance) an enum.
 

Function Documentation

◆ advanceEnum()

template<typename T >
void advanceEnum ( T & e,
int8_t n = 1 )

Cycle through (advance) an enum.

Template Parameters
TEnum type (should have _last as final element, equaling the last valid element)
Parameters
eEnum instance
nStep (can be negative)

Definition at line 11 of file advanceEnum.h.

Here is the caller graph for this function: