Question PRG-CPP-0054
MediumWhy can std::unique_ptr not be copied?
- A.
It is always null
- B.
It is too large
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C++ question
Why can std::unique_ptr not be copied?
It is always null
It is too large
Sign up free to see the answer and a step-by-step explanation.
It is a raw pointer
It represents sole ownership; it can only be moved