Todorova, E., Donchev, I. Implementation of ADS Linked List via Smart Pointers. International Journal of Advanced Computer Science and Applications. Vol. 6 No.2 2015. pp. 196-203.
Abstract: Students traditionally have difficulties in implementing abstract data structures (ADS) in C++. To a large extent, these difficulties are due to language complexity in terms of memory management with raw pointers – the programmer must take care of too many details to provide reliable, efficient and secure implementation. Since all these technical details distract students from the essence of the studied algorithms, we decided to use in the course in DSA (Data Structures and Algorithms) an automated resource management, provided by the C++ standard ISO/IEC 14882:2011. In this work we share experience of using smart pointers to implement linked lists and discuss pedagogical aspects and effectiveness of the new classes, compared to the traditional library containers and implementation via built-in pointers. - See more at: http://thesai.org/Publications/ViewIssue?volume=6&issue=2&code=IJACSA#sthash.lNu9l84m.dpuf
abstract data structures; C++; smart pointers; teaching