Smart pointer

Smart pointer

A smart pointer is an abstract data type in computer science that mimics a pointer while offering additional features like automatic memory management and bounds checking. These features aim to reduce bugs caused by pointer misuse, with smart pointers tracking the memory they point to and potentially managing other resources. Smart pointers can prevent memory leaks by automating memory deallocation and object destruction, and are useful for managing resources even in languages with automatic garbage collection.

2 courses cover this concept

CS 106L Standard C++ Programming

Stanford University

Winter 2023

This is a companion course to CS106B/CS106X, diving into the modern C++ language. It covers some of the most exciting features of C++, including modern patterns that give it beauty and power. It is an intermediate-level course assuming familiarity with basic programming concepts.

No concepts data

+ 23 more concepts

CSE 333 Systems Programming

University of Washington

Summer 2022

This course provides an understanding of systems in computing, focusing on operating systems, networking, and C/C++ languages. Students learn about low-level data representation, memory management, system interactions, and efficient programming workflows. It delves into C++ idioms, network protocols, and concurrency. Prior knowledge of C programming and Linux tools is required.

No concepts data

+ 36 more concepts