Assume I wrote a type that is something like a static_string (just a pair of size_t and N chars where N is template int parameter). So my type can be safely memcopied and there is no need to run a destructor. But it has user provided copy constructor so it is not detected as trivially copyable by C++ language.
I would like to tell the users of my type they can memcopy my type and that there is no need to run a destructor.
I always assumed that I can just specialize type_traits but I recently learned it is UB to do so.
If there is no way to do this with type traits: is there a named concept in C++20 that my type satisfies so at least in comment I can use that instead of words?
P.S. I know it is a bad idea to write types like this, but some use cases exist: optimization, shared memory(where you do not want strings to heap alloc).