1.std::enable_shared_from_this<T>主要提供了一个函数 shared_form_this函数返回 std::shared_ptr<T>对象2.能...

IP属地:四川
1.std::enable_shared_from_this<T>主要提供了一个函数 shared_form_this函数返回 std::shared_ptr<T>对象2.能...
1.std::shared_ptr 的实现是使用的引用计数,其基本结构为(非具体实现,大致结构) 也就是一个每个 std::shared_ptr 对象实际是指向一个 shar...
>>,<<,<,<=,>,>=的重载 一般分为两类 1.声明为友元函数,用法为 cout << p2.声明为成员函数,用法为 p << count LChar的重载就能满足...