|
Boost : |
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2007-04-13 18:50:48
I don't know yet if this is feasible, but here's what I am imagining:
template<typename range_2d_t>
int alg (range_2d_t const& x) {
typedef typename row_iterator<range_2d_t>::type ri_t;
ri_t ri = first_row (x);
for (; ri != end_row (x); ++ri) {
typename range_const_iterator<ri_t>::type i = begin (ri);
for (; i != end (ri); ++i)
do_something_with (*i);
}
}
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk