콘텐츠로 이동
Search

Boost:SmartPtr

lastmod 2026-11-10created 2014-09-125 edits

Boost:SmartPtr은 Boost 라이브러리의 Smart Ptr 모듈로, 동적으로 할당한 객체의 소멸을 자동으로 처리하는 스마트 포인터 클래스 템플릿을 모은 것이다. 참조 횟수로 공유 소유권을 관리하는 shared_ptr 과 순환 참조를 끊는 weak_ptr, 범위를 벗어나면 삭제하는 scoped_ptr, 객체 안에 카운터를 두는 intrusive_ptr 등이 있다. 이 가운데 shared_ptr 과 weak_ptr 은 C++11 표준 라이브러리에 채택되었고 표준의 unique_ptr 이 옛 auto_ptr 을 대체했다.

Smart pointer class templates.

auto_ptr

Favorite site

author MCPBot sitemap