Data types

Smart pointer

In computer science, a smart pointer is an abstract data type that simulates a pointer while providing added features, such as automatic memory management or bounds checking. Such features are intended to reduce bugs caused by the misuse of pointers, while retaining efficiency. Smart pointers typically keep track of the memory they point to, and may also be used to manage other resources, such as network connections and file handles. Smart pointers were first popularized in the programming language C++ during the first half of the 1990s as rebuttal to criticisms of C++'s lack of automatic garbage collection. Pointer misuse can be a major source of bugs. Smart pointers prevent most situations of memory leaks by making the memory deallocation automatic. More generally, they make object destruction automatic: an object controlled by a smart pointer is automatically destroyed (finalized and then deallocated) when the last (or only) owner of an object is destroyed, for example because the owner is a local variable, and execution leaves the variable's scope. Smart pointers also eliminate dangling pointers by postponing destruction until an object is no longer in use. If a language supports automatic garbage collection (for example, Java or C#), then smart pointers are unneeded for reclaiming and safety aspects of memory management, yet are useful for other purposes, such as cache data structure residence management and resource management of objects such as file handles or network sockets. Several types of smart pointers exist. Some work with reference counting, others by assigning ownership of an object to one pointer. (Wikipedia).

Video thumbnail

ROUND FRESNEL LENS ON A STICK

http://www.greenpowerscience.com/ DEMONSTRATION MODEL OF A FRESNEL LENS PERFECT FOR FAST DEMOS

From playlist FRESNEL LENS

Video thumbnail

SmartBoard Handwriting

Use the calligraphy pen to make hand writing on the SmartBoard fancier. Also, learn to convert handwritten text to typed text.

From playlist SmartBoard Workshop

Video thumbnail

Samsung Galaxy S5 customization - set up lock screen

In this video we teach you how to set up the Samsung Galaxy S5 lock screen to provide some security for your phone.

From playlist Technology

Video thumbnail

World's Most Powerful Visible Diode Laser

"The NUBM44 Laser Diode" The World's Most Powerful

From playlist Lasers

Video thumbnail

High Energy Dye Laser Optical Design

An overview of the optics for the high energy pulsed dye laser.

From playlist Lasers

Video thumbnail

Mathigon Demo (1)

Mathigon (found at mathigon.org) is one of my new favorite apps. Check it out to see what it can do!

From playlist Mathigon Demos and Ideas

Video thumbnail

Schnitt einer Ebene mit einer Geraden

Quickstart für Web und Tablet App Beispiel 5: Schnitt einer Ebene mit einer Geraden

From playlist Quickstart für Web und Tablet App

Video thumbnail

PROG2006: Rust - smart pointers

PROG2006 - Advanced Programming Rust: smart pointers, Box, Rc

From playlist PROG2006 - Programming

Video thumbnail

What Are Pointers? (C++)

A bit different from me, but I felt like I needed a reference video that explained a few things about pointers. Included are the very basics, memory allocation, problems to avoid and smart pointers. This video is aimed at those earlier on with their programming journeys. https://discord

From playlist Interesting Programming

Video thumbnail

PROG2006: Rust - Smart Pointers and Collections

Join us as we talk about collections and smart pointers in Rust. Recorded as part of the PROG2006 course.

From playlist PROG2006 - Programming

Video thumbnail

Cargo and Crates - The Rust Book (part 52) chapter 14

I'm streaming every weekday morning on Twitch at https://www.twitch.tv/brookzerker. Please feel free to stop by and say hi! Links Rust book: https://doc.rust-lang.org/book/second-edition/ My code: https://github.com/BrooksPatton/learning-rust The Learning Wiki: https://github.com/BrooksP

From playlist Rust Book

Video thumbnail

C++ Tutorial 15 : Smart Pointers & Polymorphic Templates

Get the Code : http://bit.ly/cplus15 Best C++ Book : https://amzn.to/2rBqOKC https://www.patreon.com/derekbanas In this part of my C++ tutorial I will answer a bunch of questions I have received. I'll talk about allocating memory with malloc(), Smart Pointers, Regular Pointers, Deallocati

From playlist C++ Tutorial

Video thumbnail

Smart pointers - The Rust Book (part 54) chapter 14

I'm streaming every weekday morning on Twitch at https://www.twitch.tv/brookzerker. Please feel free to stop by and say hi! Links Rust book: https://doc.rust-lang.org/book/second-edition/ My code: https://github.com/BrooksPatton/learning-rust The Learning Wiki: https://github.com/BrooksP

From playlist Rust Book

Video thumbnail

Rust's Alien Data Types 👽 Box, Rc, Arc

Rust's smart pointers can be a bit confusing for developers coming from garbage collected languages. Let's walk through some very simple examples to understand when and how to use the most common ones. 00:00 Intro 00:32 Box 03:34 Rc 09:08 Arc 11:42 Outro --- Stuff I use to make these vid

From playlist Great Rust Videos

Video thumbnail

Crust of Rust: Smart Pointers and Interior Mutability

In this fourth Crust of Rust video, we cover smart pointers and interior mutability, by re-implementing the Cell, RefCell, and Rc types from the standard library. As part of that, we cover when those types are useful, how they work, and what the equivalent thread-safe versions of these typ

From playlist Crust of Rust

Video thumbnail

Smart pointers - The Rust Book (part 53) chapter 14

I'm streaming every weekday morning on Twitch at https://www.twitch.tv/brookzerker. Please feel free to stop by and say hi! Links Rust book: https://doc.rust-lang.org/book/second-edition/ My code: https://github.com/BrooksPatton/learning-rust The Learning Wiki: https://github.com/BrooksP

From playlist Rust Book

Video thumbnail

Linear Desface

Here we show a quick way to set up a face in desmos using domain and range restrictions along with sliders. @shaunteaches

From playlist desmos

Video thumbnail

Automating Sequences via Lua Coroutines in C++

In this video, I show how Lua, and its wonderful coroutines, can be used to implement maintenance free automated sequences for objects in game worlds, such as moving platforms, cut scenes, tutorials etc. From a wider perspective, it's the start of how to implement your game world and logic

From playlist Interesting Programming

Related pages

Garbage collection (computer science) | Reference counting | Reference (computer science) | Opaque pointer | Boost (C++ libraries) | Pointer (computer programming) | Abstract data type