Skip to main content
pkglog
BlogSeriesAbout
KO

인기글

  • 1 Vercel 배포 실전: Git 연동, 환경 변수 실수, Edge vs Node 런타임, ISR, 빌드 실패 대응
  • 2 Cloudflare Pages 배포: GitHub 연동, Wrangler CLI, Pages Functions와 Vercel·Netlify 비교
  • 3 개인 프로젝트에 쓸 수 있는 무료 공개 API 100선: 날씨·지도·금융·AI·공공데이터
  • 4 AAC 오디오 코덱: LC-AAC·HE-AAC 압축 원리와 FFmpeg 인코딩 설정
  • 5 C++ nlohmann/json 실전: 파싱·커스텀 타입 직렬화·에러 처리와 자주 틀리는 동작

최근 업데이트

  • 개발자를 위한 AI 프롬프트 엔지니어링 | ChatGPT·Claude·Cursor 실전 Oct 2, 2026
  • 바이브 코딩을 제대로 쓰는 법: Cursor·Copilot·Claude의 컨텍스트 수집과 검증 습관 Oct 2, 2026
  • LeetCode 패턴: 두 포인터와 슬라이딩 윈도우 | 템플릿과 C++/Python Oct 2, 2026
  • 기초 정렬 알고리즘: 버블·선택·삽입 정렬의 동작과 O(n²)인 이유 Oct 2, 2026
  • 고급 정렬: 퀵·병합·힙 정렬이 O(n log n)인 이유와 선택 기준 Oct 2, 2026

Tag: shared_ptr

5 posts

All posts

  • Sep 17, 2026 42 min read Intermediate

    shared_ptr and weak_ptr Internals: Control Blocks, Cycles, enable_shared_from_this and Aliasing

    std::shared_ptr reference counting, control blocks, weak_ptr observers, cycles, enable_shared_from_this, aliasing, custom deleters, and production patterns in modern C++.

  • Aug 17, 2026 28 min read Intermediate

    C++ Smart Pointers

    C++ smart pointers: unique_ptr, shared_ptr, weak_ptr, make_unique, make_shared—fix circular references when memory grows despite no Valgrind leak.

  • Aug 4, 2026 11 min read Intermediate

    C++ Circular References: shared_ptr Leaks and Breaking

    Why shared_ptr cycles leak memory, how weak_ptr breaks cycles, parent/child and cache/observer patterns, use_count debugging, Valgrind, and ASan.

  • Jun 15, 2026 42 min read Intermediate

    C++ shared_ptr Circular References and weak_ptr: Trees, Observers, Graphs, Caches

    Break shared_ptr reference cycles with weak_ptr: why cycles leak memory, using lock() and expired() safely, parent-child trees, observers, graphs and caches, enable_shared_from_this pitfalls, and how to diagnose leaks.

  • May 29, 2026 17 min read Intermediate

    C++ shared_ptr vs unique_ptr: Ownership, Overhead, Thread Safety and When to Use Each

    shared_ptr vs unique_ptr: prefer unique_ptr by default; use shared_ptr for shared ownership. Raw pointers in C++ do not communicate ownership.

pkglog

Notes on C++, backend, and DevOps problems, written and maintained by 0xmote.

Content

Blog Series Glossary

Info

About Contact FAQ Sitemap

Legal

Privacy Policy Terms of Use

© 2026 pkglog. All rights reserved.

Built with Astro

This site uses cookies for traffic analysis and personalized ads served via Google AdSense. See our Privacy Policy for details.