What's your convention for typedef'ing shared_ptr?

后端 未结 16 1685
北恋
北恋 2020-12-13 00:10

I\'m flip-flopping between naming conventions for typedef\'ing the boost::shared_ptr template. For example:

typedef boost::shared_ptr FooPtr;
         


        
16条回答
  •  暖寄归人
    2020-12-13 00:41

      typedef shared_ptr sptr_Foo;
      typedef weak_ptr   wptr_Foo;
      typedef unique_ptr uptr_Foo;
    

提交回复
热议问题