This question is a follow-up to the my earlier code posted here. In the original question, I created a simplified version of C++ std::vector
/ArrayList
. I got many good answers and I thought I would like another code review of my improvements to my original code.
This question is a follow-up to the my earlier code posted here. In the original question, I created a simplified version of C++ std::vector
/ArrayList
. I got many good answers and I thought I would like another code review of my improvements to my original code.
Follow up: simplified implementationSimplified Implementation of ArrayList in C++
- My ArrayList class guranteesguarantees Strong Exception Safety, using the copy and swap idiom
- The container still works if T passed in is not default constructible
- Correctness of the implementation of the Rule of Five
- General correctness and efficiency (i.e: No memory leaks, dangling pointers ... ...)
Follow up: simplified implementation of ArrayList in C++
- My ArrayList class gurantees Strong Exception Safety, using the copy and swap idiom
- The container still works if T passed in is not default constructible
- Correctness of the implementation of the Rule of Five
- General correctness and efficiency (i.e: No memory leaks, dangling pointers ... ...)
Follow up: Simplified Implementation of ArrayList in C++
- My ArrayList class guarantees Strong Exception Safety, using the copy and swap idiom
- The container still works if T passed in is not default constructible
- Correctness of the implementation of the Rule of Five
- General correctness and efficiency (i.e: No memory leaks, dangling pointers ... ...)