title: Extend the singleton pattern to allow more than one instance
body: <p>How can we extend the singleton method to allow more than one instance in C++. For example, how we can use singleton pattern to ensure that maximum 5 objects of a class is created or allowed</p>