什么是智能指针,什么时候应该使用?
c++ pointers smart-pointers c++-faq c++11
在C++中通常用某种前缀命名成员变量来表示它们是成员变量而不是局部变量或参数.如果你来自MFC背景,你可能会使用m_foo.我myFoo偶尔也见过.
m_foo
myFoo
C#(或者可能只是.NET)似乎建议只使用下划线,如_foo.这是否允许C++标准?
_foo
c++ standards naming-conventions c++-faq
c++ ×2
c++-faq ×2
c++11 ×1
naming-conventions ×1
pointers ×1
smart-pointers ×1
standards ×1