Skip to content

参考源码,重新实现一C++11新特性: 智能指针,同时增加了一些更强、更健壮的特性

License

Notifications You must be signed in to change notification settings

LRY89757/SmartPtr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartPtr

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

实现C++11新特性智能指针

Getting Started

# make:
sh make.sh
# run:
sh run.sh

(back to top)

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • cmake3.8+
  • gcc9+

(back to top)

Roadmap

  • shared_ptr
    • ✔️ 各类构造析构
    • ✔️ 重载->
    • ❌ 重载运算符<<
    • 🚧 reset函数实现
    • make_shared函数友元
    • deleter函数自定义
    • unique函数实现
    • ❌ 解决使用相同指针来构造不同智能指针对象的问题
  • unique_ptr
    • [ ]
    • [ ]
  • weak_ptr
    • [ ]
    • [ ]

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

email: [email protected]

(back to top)

About

参考源码,重新实现一C++11新特性: 智能指针,同时增加了一些更强、更健壮的特性

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published