What's your convention for typedef'ing shared_ptr?

后端 未结 16 1722
北恋
北恋 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:36

    This was one of the conventions I was flip-flopping to:

    typedef boost::shared_ptr FooProxy;
    

    ...seeing that boost::shared_ptr is an application of the Proxy pattern.

提交回复
热议问题