New answers tagged

4 votes

A simple String class and its special member functions

Don't using namespace std;, as that can be harmful. Instead, write out std::uint32_t, ...
  • 67.6k
4 votes
Accepted

A simple String class and its special member functions

Answer to your question is it true that in theory and in practice that when using move constructor and move assignment operator, the move-from object shall be invalid. No, the moved-from object must ...
  • 42.4k
4 votes
Accepted

Safely starting and stopping a thread owned by a class

Don't let multiple threads access a std::thread object Operations on a std::thread object are not thread-safe themselves. If you ...
  • 42.4k

Top 50 recent answers are included