#include <SPtr.h>
new operator for classes with smart pointers (such as all components deriving from Base) More...
new operator for classes with smart pointers (such as all components deriving from Base)
This class should be used as : MyT::SPtr p = sofa::core::objectmodel::New<MyT>(myargs); instead of : MyT* p = new MyT(myargs);
The use of this New operator and SPtr pointers insures that all created objects are :
Public Member Functions | |
template<class ... Args> | |
New (Args &&... args) | |
|
inline |