Boost logo

Boost :

From: Kevlin Henney (Kevlin.Henney_at_[hidden])
Date: 2000-01-12 03:28:53


>While we're defining container concepts, there ought to be a Bag
>concept. A Bag is something that you can put and get items out of. For
>instance, Dietmar's heaps and queue's would qualify as Bags.

I feel this would be better termed a Dispenser (or Dispensor, if you wish
to follow the *or convention used elsewhere :->). First, this is the more
common term for the concept. Second, the term Bag already denotes something
else: a set with repeating elements.

>I suppose you could add logical inspectability to the requirements,
>but I think that's what the Collection concept is for, so we might as
>well keep the Bag concept minimalistic.

Agreed.

Kevlin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk