Talk:cpp/types/is trivially copyable
From cppreference.com
"Objects of trivially-copyable types are the only C++ objects that may be safely copied with std::memcpy or serialized to/from binary files with std::ofstream::write()/std::ifstream::read()"
Correction/clarification needed: Pointers are trivially-copyable but in general they can't be serialized directly.