Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-09-28 09:00:23

Hi Boosters,

The container_traits<> template have been a long way under way (originally
termed array_traits).
With the help of Pavol Dropa, I think we have a fairly solid implementation.

I've uploaded to the file section and you can also find
docs, test, Jamfile etc in the sandbox.

This library makes it possible to treat different types as if they have
implemented a subset of the container requirements (See §23.1). The subset
deals mostly with iterator returning functions and nested typedefs. It
therefore becomes possible to treat built-in arrays, standard containers,
pairs of iterators and some iterators uniformly.
The main advantages are

  a.. safe use of built-in arrays
  b.. simpler implementation of generic container algorithms
  c.. more flexible client code
Any feedback is welcome; especially test results for more compilers.

best regards


Boost list run by bdawes at, gregod at, cpdaniel at, john at