Stay Angry, Stay Foolish
原文链接:
MEM50-CPP. Do not access freed memory
阅读全文
FIO50-CPP. Do not alternately input and output from a file stream without an intervening positioning call
CTR58-CPP. Predicate function objects should not be mutable
https://wiki.sei.cmu.edu/confluence/display/cplusplus/CTR58-CPP.+Predicate+function+objects+should+not+be+mutable
CTR57-CPP. Provide a valid ordering predicate
https://wiki.sei.cmu.edu/confluence/display/cplusplus/CTR57-CPP.+Provide+a+valid+ordering+predicate
CTR56-CPP. Do not use pointer arithmetic on polymorphic objects
https://wiki.sei.cmu.edu/confluence/display/cplusplus/CTR56-CPP.+Do+not+use+pointer+arithmetic+on+polymorphic+objects
CTR55-CPP. Do not use an additive operator on an iterator if the result would overflow
https://wiki.sei.cmu.edu/confluence/display/cplusplus/CTR55-CPP.+Do+not+use+an+additive+operator+on+an+iterator+if+the+result+would+overflow
CTR54-CPP. Do not subtract iterators that do not refer to the same container
https://wiki.sei.cmu.edu/confluence/display/cplusplus/CTR54-CPP.+Do+not+subtract+iterators+that+do+not+refer+to+the+same+container
CTR53-CPP. Use valid iterator ranges
https://wiki.sei.cmu.edu/confluence/display/cplusplus/CTR53-CPP.+Use+valid+iterator+ranges
CTR52-CPP. Guarantee that library functions do not overflow
https://wiki.sei.cmu.edu/confluence/display/cplusplus/CTR52-CPP.+Guarantee+that+library+functions+do+not+overflow
CTR51-CPP. Use valid references, pointers, and iterators to reference elements of a container
https://wiki.sei.cmu.edu/confluence/display/cplusplus/CTR51-CPP.+Use+valid+references%2C+pointers%2C+and+iterators+to+reference+elements+of+a+container
Stay Angry, Stay Foolish.