Skip to content

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()`.

Where the book teaches it

Related terms

Unique pointer