![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Go to the source code of this file.
| #define ARENE_CPP14_INLINE_VARIABLE_INIT | ( | name, | |
| ... ) |
Emulates C++17's inline variable declarations for an arbitrary initializer expression.
| name | The name the instantiated object should have in the containing namespace. |
| ... | The initializer expression. Variadic so that initializers containing commas (e.g. template arguments of the constructed type) do not need extra parentheses at the call site. |
Companion to ARENE_CPP14_INLINE_VARIABLE for cases where the value cannot be produced by default-construction (e.g. function objects returned from arene::base::bind_back ).
| #define ARENE_CPP14_INLINE_VARIABLE_INIT_DETAIL_NS | ( | name | ) |
| #define ARENE_CPP14_INLINE_VARIABLE_INIT_DETAIL_VAR | ( | name | ) |