![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | Makefile | 2015-02-11 11:06 | 820 | |
![]() | README | 2015-02-11 11:06 | 414 | |
![]() | smart_pointer-test-compare.cpp | 2015-02-11 11:06 | 2.9K | |
![]() | smart_pointer.cpp | 2015-02-11 11:06 | 866 | |
![]() | smart_pointer.h | 2015-02-11 11:06 | 2.3K | |
Smart pointer I, Step 2 ----------------------- Code have been divided into two files, smart_pointer and smart_pointer.cpp. Some member functions are still defined "inclass". Operators for negation (!), equality (==) ineequality olikhet (!=) have been added. The operators for equality and inequality are overloaded to compare two smart pointers, or a smart pointer and a raw pointer, of corresponding types.