Updated again to reflect the question little bit different this time and hope I can get a solution to this:
I can think of a store where there would be 2 workers - 1 worker's job is to receive products and store in appropriate bins and second worker's job is to pick the product based on customer's request and sell that to customer.
The store is expected to store 'N' products ( variable ) and each of these bins needs to hold only similar products.
How to go about solving this problem?
If container can share dissimilar items - I could have gone with defining a single container in shared header file and each worker would have operate on this shared container. The issue here is container should only hold similar items and unable to think of a generic way to define a shared containers for variable 'N' products.
I also have thought about pre-defining the containers for each of the product types - but the issue with this approach is - when a new product is added - I would have to update the header to file to define a new container - which I am trying to avoid - if there is any way to define this container dynamically - and can be shared between 2 workers.
Thanks