I've been reading the documentation of boost::flyweight
but i don't see any mention to deallocation or reference counting policies. Basically a flyweight object should behave like a repository of distinct values, but its not clear what happens when a distinct value is not used anymore.
Is it already supported? can it be enabled with some custom factory?