
Firstly, I think the bimap library is great. What would suit my situation is to use a container type of relation that allowed storage of some information with each relationship. Effectively: map_of_relation< UserDefineValueType, KeyComp > (and related multimap, unordered_map, etc). As a usage example, in database terms, TableA references TableB. Attached to the TableA->TableB relationship, would be a bimap of rows in TableA that reference rows in TableB. So... typedef bimap< set_ofRows:iterator, set_ofRows:iterator, map_of< RelationshipDescription >
RowRelationships;
typedef bimap< multiset_ofTable::Ptr, multiset_ofTable::Ptr, map_of_relation< shared_ptr<RowRelationships> >
TableRelationships;
Is this easy to add with the current bimap architecture? Neil

Hi,
On Sun, Mar 30, 2008 at 8:50 AM, Neil Hunt
Firstly, I think the bimap library is great.
Thanks!
What would suit my situation is to use a container type of relation that allowed storage of some information with each relationship.
You can attach additional information to each relation using "with_info", but this has nothing to do with the container type of relation. Please read this section of the docs: http://tinyurl.com/yuwvwy Please come back if that is not what are you looking for. <snip example> Best regards Matias
participants (2)
-
Matias Capeletto
-
Neil Hunt