1편
전체 글
std::weak_ptr은 shared_ptr이 가리키는 객체를 약하게 참조해 순환 참조를 끊는 C++11 스마트 포인터입니다. 이 글에서는 lock·expired 사용법, 옵저버·캐시 패턴과 shared_ptr와의 역할 분담을 예제로 다룹니다.