Mozzi  alpha 0.01.1t
sound synthesis library for Arduino
 All Classes Functions Typedefs
Public Types
Int2Type< I > Struct Template Reference

Enables you to instantiate a template based on an integer value. More...

List of all members.

Public Types

enum  { value = I }

Detailed Description

template<int I>
struct Int2Type< I >

Enables you to instantiate a template based on an integer value.

For example, this is used in StateVariable.h to choose a different next() function for each kind of filter, LOWPASS, BANDPASS, HIGHPASS or NOTCH, which are simple integer values 0,1,2,3 provided to the StateVariable template on instantiation. Fantastic! It's in C++11, but not yet available in avr-gcc. See "c++ enable_if"

Definition at line 19 of file meta.h.


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