Stay Angry, Stay Foolish
原文链接:
STR52-CPP. Use valid references, pointers, and iterators to reference elements of a basic_string
阅读全文
STR51-CPP. Do not attempt to create a std::string from a null pointer
STR50-CPP. Guarantee that storage for strings has sufficient space for character data and the null terminator
MEM57-CPP. Avoid using default operator new for over-aligned types
MEM56-CPP. Do not store an already-owned pointer value in an unrelated smart pointer
MEM55-CPP. Honor replacement dynamic storage management requirements
MEM54-CPP. Provide placement new with properly aligned pointers to sufficient storage capacity
MEM53-CPP. Explicitly construct and destruct objects when manually managing object lifetime
MEM52-CPP. Detect and handle memory allocation errors
MEM51-CPP. Properly deallocate dynamically allocated resources
Stay Angry, Stay Foolish.