Suppose I have a struct containing a std::string, like this:
struct userdata{ int uid; std::string username; }
Do I nee
You don't have to do anything special. C++ (and the implementation of STL) define this to just work.