🖍️
嗡嗡的草稿倉庫
Ctrlk
  • ✏️嗡嗡的草稿倉庫
  • Bash Script
  • Linux
  • C++
    • C++ 一些觀念
    • C++ 條件處理
    • C++ 字串處理
    • C++ 檔案讀取
    • C++ const
    • C++ container
    • C++ struct / class
    • C++ scope
    • C++ function
    • C++ debug
    • C++ multithread / mutex
    • C++ 記憶體管理 (stack/heap)
    • Modern C++
      • translation unit
      • rvalue / lvalue
      • move constructors
      • The rule of five c++ (move constructor)
      • constexper
      • C++ name requirements (literal type)
      • Perfect forwarding
      • Move semantics
      • pimpl five rules
      • C++ smart pointer
        • make_unique custom deleter
        • pimpl unique_ptr
        • std::forward
        • unique_ptr to char*
        • get smart pointer address
        • std unique_ptr
    • C++ template
    • C++ clang-tidy
    • C++ Learning resource
    • C++ atomic
    • C++ test
    • C++ MISC
    • C++ library
  • Python
  • Machine Learning (ML)
  • Git
  • VSCode
  • Design Pattern
  • Functional programming
  • WordPress
  • 加密貨幣
  • 省思&雜記
  • 嗡嗡的隨手筆記 (整理完放此)
Powered by GitBook
On this page
  1. C++
  2. Modern C++
  3. C++ smart pointer

std unique_ptr

  • std unique_ptr function call

  • use .get()

  • https://stackoverflow.com/questions/27203286/how-to-call-method-of-wrapped-object-by-unique-ptr

  • https://en.cppreference.com/w/cpp/memory/unique_ptr

  • unique_ptr 使用方法

  • https://shengyu7697.github.io/std-unique_ptr/

  • pimpl unique_ptr

  • https://www.fluentcpp.com/2017/09/22/make-pimpl-using-unique_ptr/

Previousget smart pointer addressNextC++ template

Last updated 2 years ago

Was this helpful?

Was this helpful?