Advanced C++ Programming Tutorial 6

From Chilipedia
Revision as of 23:20, 2 November 2019 by Chili (Talk | contribs) (Part 1)

Jump to: navigation, search

Share your resources with style with stared_ptr.


Part 1

  • Review of unique_ptr
  • shared_ptr usage scenarios
  • use_count
  • How to pass/receive resources when shared_ptr is involved
  • Conversion from unique_ptr
  • Custom deleter for shared_ptr

Part 2

Stay Tuned!

Video Timestamp Index


Part 1

Identify targets in the Memefighter codebase from Intermediate c++ for resource sharing, implement the sharing with std::shared_ptr, and consider/discuss potential downsides to the resource sharing for each instance of resource sharing.

See also