Trivially copyable types are an important performance concept in C++.
A trivially copyable object can be treated as a block of bits and copied using primitive memory operations (e.g. memcpy and memmove).
Click to open in Compiler Explorer.
Leave a comment