Class empty_struct¶
class empty_struct<tag> meta¶
template <int tag>
struct empty_struct { … } Empty type tagged with a unique integer tag .
| tag | unique identifier distinguishing one empty field from another |
struct S {
KFR_NO_UNIQUE_ADDRESS empty_struct<0> a; // 0 bytes
KFR_NO_UNIQUE_ADDRESS empty_struct<1> b; // 0 bytes
};
static_assert(sizeof(S) == 1); // both empty fields compacted away
Fully qualified name: kfr::empty_struct<tag>
Declared at meta.hpp:2353
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.