Boost logo

Boost :

From: Jeff Perry (jeffsp_at_[hidden])
Date: 2007-08-27 22:41:34

If anyone is interested, I have developed a simple 2D matrix container
adapter that we use for image processing and such. It's basically an
stl-compliant interface that wraps a std::vector, or any other
vector-like container, and provides

- row/column indexing
- iterators for subregion access
- subscript function objects
- normal stl container stuff like iterators and custom allocators
- row/column insert/erase

It's simple and general, and it's proven useful in our lab. Maybe
someone else may find it useful too.

An example may be found at:

The full docs, with a few more examples, may be found at:

Zipped up source may be found at:

I have tested it with gcc 3, gcc 4, and msvc 8.0.


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