Glossary: C++ Beyond the Basics
Factory function
A function that creates an object and hands it back, often as a `std::unique_ptr`, like `make_mug()`.
Glossary: C++ Beyond the Basics
A function that creates an object and hands it back, often as a `std::unique_ptr`, like `make_mug()`.