| 78 | const_only_shared_ptr() = default; |
| 79 | explicit const_only_shared_ptr(const T *ptr) : ptr_(ptr) {} |
| 80 | const T *get() const { return ptr_.get(); } |
| 81 | |
| 82 | private: |
| 83 | // for demonstration purpose only, this imitates smart pointer with a const-only pointer |