Empty Base Class Optimisation, no_unique_address and unique_ptr--Bartlomiej Filipek
Life made easier.
Empty Base Class Optimisation, no_unique_address and unique_ptr
by Bartlomiej Filipek
From the article:
C++20 added a couple of new attributes in the form of [[attrib_name]]. One of them - [[no_unique_address]] - can have surprising effects on the code! In this blog post, you’ll learn how to optimize your classes' layout and make some data members “disappear”. In most cases, it will be just one line of C++20 code.
Let’s go...

Registration is now open for CppCon 2021, which starts on October 24 and will be held
Registration is now open for CppCon 2021, which starts on October 24 and will be held both in 
Registration is now open for CppCon 2021, which starts on October 24 and will be held both in