I can't understand how to use boost::flyweight
as a GOF pattern. Is there are exist example somewhere?
For example, I expect it usage in the following way. There must be some flyweight container, that consist the "fat" objects. This container can give some lightweight "holder/descriptor" for some object. And I can store the descriptor in some container.
I can't understand how to receive the "holder/descriptor" of object from the boost::flyweight
.