Constructs a new parameter set from the specified overrides.
Copy constructor.
Constructs a new parameter set from all possible values.
enum MyConfig : string { someOption = "do something cool, like a barrel roll", lazyProcessing = "be as lazy as possible" } alias MyParams = Params!MyConfig; struct SomeStruct( MyParams params = MyParams.init ) { static if( params.someOption ) { // do something cool... } static if( params.lazyProcessing ) { // ... } }
Copyright © 2019, Tony J. Hudgins
MIT
Represents a set of flags built from an enum intended to be used at compile-time for configuring the behaviour of templates, mixins, or other compile-time features.
Credit to Ethan Watson and his wonderful DConf 2019 talk for this idea.