Category : alignas

Can C++ template parameters be used to control specifiers on the class itself to minimize some code duplication? For example: I have a class that I’d like to use both in a concurrent context (and container) with the alignas specifier, and also in a single-threaded context without the alignas specifier. The size of the class ..

Read more