C++ features by examples
Sample_factory Struct Reference
Inheritance diagram for Sample_factory:
Collaboration diagram for Sample_factory:

Public Member Functions

virtual unique_ptr< Interfacecreate ()
 
virtual unique_ptr< Interfacecreate ()=0
 

Detailed Description

Definition at line 236 of file patterns.cpp.

Member Function Documentation

◆ create()

virtual unique_ptr< Interface > Sample_factory::create ( )
inlinevirtual

Implements Abstract_factory.

Definition at line 239 of file patterns.cpp.

239 {
240 return make_unique<Sample_product>();
241 }

The documentation for this struct was generated from the following file: