Рет қаралды 4,687
The use of std variant in realtime DSP
Ian Hobson, Application Developer & Software Engineer, Ableton
C++17 introduces std::variant, a type-safe union class. A variant's value represents one of a fixed set of possible types, with C++'s type system ensuring that correct code paths are executed for the active type. This talk will explore the pros and cons of working with variants, with a special focus on DSP. Variants allow for well defined interfaces and minimal memory footprints, but what are they like to use in practice, and are they performant enough for realtime use?
Presented at ADC 2017, Code Node, London.
juce.com/adc-2017