Q1. 스마트 포인터 unique_ptr, shared_ptr를 모른다.Q2. 스마트 포인터 unique_ptr, shared_ptr 생성 방법은?Q3. make_shared(or make_unique)를 써야 하는 이유는?* 3가지 질문에 대한 답을 알고 있다면 이 글을 읽지 않아도 된다. 😎🛫shared_ptr 생성 시에는 std::make_shared를 써라!C++에서 메모리 할당/해제는 의도치 않은 많은 이슈를 양산하기에 RAII(Resource acquisition is initialization)가 되는 걸 사용하라고 한다. 그중 하나인 shared_ptr에 대해 조금 알아보자. sample#include #include struct Point{ int x; int y; P..