Boost logo

Boost :

Subject: Re: [boost] Boost.Containers? (WAS Re: Proposal: Monotonic Containers - Comparison with boost::pool, boost::fast_pool and TBB)
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2009-06-24 00:07:05


On Wed, Jun 24, 2009 at 12:01 PM, Christian
Schladetsch<christian.schladetsch_at_[hidden]> wrote:
>>
>> I think this can easily be done through 'using' declarations:
>>
>> namespace boost {
>>  namespace containers {
>>    using boost::interprocess::list;
>>    using boost::interprocess::vector;
>>    /* ... */
>>  }
>> }
>
>
> This makes complete sense to me.
>
> What would the header names be?  Perhaps:
>
> #include <boost/containers/list.hpp>
> #include <boost/containers/vector.hpp>
> ...
> #include <boost/containers.hpp> // includes all above
>

I'd think this would be a sane organization.

> Would the intermediate directory be called plural containers or singular
> container?

Based on the guidelines, it'd most probably be plural.
'boost::containers::*' makes much more sense at least to me.

>
> Is interprocess::string a container? I would say yes, but then there would
> be <boost/container/string.hpp> which seems a little unsettling.
>
> But, does boost really want a <boost/string.hpp> ?
>

I'd say it's fine with me to have something like
<boost/containers/string.hpp> -- it's just a file name anyway and it's
descriptive enough to convey the meaning.

HTH

-- 
Dean Michael Berris | Software Engineer, Friendster, Inc.
blog.cplusplus-soup.com | twitter.com/mikhailberis |
linkedin.com/in/mikhailberis | profiles.friendster.com/mikhailberis |
deanberris.com

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