Implement a Thread-Safe Reference-Counted Smart Pointer in C++

Quick Overview

Implement a reference-counted smart pointer class template in C++ from scratch, with copy and move construction and assignment, reset, dereferencing and a use count. It tests ownership rules, self-assignment and exception safety, atomic reference counting with correct memory ordering, and extensions such as weak pointers, base-class conversion and reference cycles.

Implement a Thread-Safe Reference-Counted Smart Pointer in C++

Company: NVIDIA

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Onsite

Overview: Implement a reference-counted smart pointer class template in C++ from scratch, with copy and move construction and assignment, reset, dereferencing and a use count. It tests ownership rules, self-assignment and exception safety, atomic reference counting with correct memory ordering, and extensions such as weak pointers, base-class conversion and reference cycles.

NVIDIA logo
NVIDIA
Sep 15, 2026
mediumSoftware EngineerOnsiteSoftware Engineering Fundamentals
6
0
Loading...