What's a naked pointer?

前端 未结 4 1673
被撕碎了的回忆
被撕碎了的回忆 2021-01-07 23:05

Observing Naked Pointers (see the first reply), the questions is pretty simple:

what is a Naked Pointer?

4条回答
  •  猫巷女王i
    2021-01-07 23:37

    A naked pointer (raw pointer, "dumb" pointer) is a C-style pointer T*. Contrast this with the "smart" pointers C++ offers (std::shared_ptr, std::weak_ptr and std::unique_ptr).

提交回复
热议问题