|
Hint 0.1.0
|
attributes that can control explicit template instantiation More...
Macros | |
| #define | hint_visibility(...) |
[[visibility(x)]] | |
| #define | hint_exclude_from_explicit_instantiation |
| exclude this member from explicit template instantiation. | |
| #define | hint_hidden hint_visibility("hidden") hint_exclude_from_explicit_instantiation |
[[visibility("hidden")]] [[exclude_from_explicit_instantiations]] | |
attributes that can control explicit template instantiation
| #define hint_exclude_from_explicit_instantiation |
exclude this member from explicit template instantiation.
Usually paired with hint_visibility("hidden"), see hint_hidden
| #define hint_hidden hint_visibility("hidden") hint_exclude_from_explicit_instantiation |
[[visibility("hidden")]] [[exclude_from_explicit_instantiations]]
Use to exclude from both having to compute in explicit template instantiations and expecting it to be stored. This means that the resulting member is safely delayed to the usage site, despite the template being explicitly otherwise instantiated. Useful for #hint_inline and the general sort of SIMD intrinsic wrappers where there's no point in emitting a function body that will never be called, and will just bloat executable size.
| #define hint_visibility | ( | ... | ) |
[[visibility(x)]]
Primarily used for [[visibility("hidden")]] to disable inclusion of the symbol in the resulting library