template<typename
TObject>
class elastix::DefaultConstruct< TObject >
Allows default-constructing an itk::LightObject derived object without calling New(). May improve the runtime performance, by avoiding heap allocation and pointer indirection.
Follows C++ Core Guidelines, September 23, 2022, "Prefer scoped objects, don't heap-allocate unnecessarily", from http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rr-scoped
- Note
- While New() may use a factory (itk::ObjectFactory) to create the object, DefaultConstruct just default-constructs the object.
Definition at line 35 of file elxDefaultConstruct.h.