Learn
Practice
Newsletter
Resources
Resume
New
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
std::unique_ptr
Last Updated: May 22, 2026
High Priority
9 min read
Get Premium
Subscribe to unlock full access to all premium content
Subscribe Now
Reading Progress
0%
On this page
Why unique_ptr Exists
Constructing a unique_ptr
Move-Only Semantics
The Common Operations
A unique_ptr as a Class Member
Custom Deleters
Arrays with unique_ptr<T[]>
When to Use unique_ptr
See What's New
Aa
Notes
Star
Complete
Ask AI
Smart Pointers Overv...
Notes
Star
Complete
Ask AI
shared_ptr