E
Ebenezer
Shalom
My marshalling deques adventure has been stymied by the C++
standards morass.... Now I'm focusing on segmented_arrays.
Would the author of segmented_array comment on adding the
following to the segmented_array file?
template <typename T, std::size_t N = 64, typename A =
std::allocator<T> >
class segmented_iterator : public ::neolib::segmented_array<T, N,
A>::iterator
{
typedef typename ::neolib::segmented_array<T, N, A>::iterator
base;
public:
segmented_iterator(base const& x) : base(x) {}
typename base::segment_type& segment() { return base::seg(); }
};
That's a slightly modified version of something from the
segmented_array web pages. Tia.
Brian Wood
Ebenezer Enterprises
http://webEbenezer.net
My marshalling deques adventure has been stymied by the C++
standards morass.... Now I'm focusing on segmented_arrays.
Would the author of segmented_array comment on adding the
following to the segmented_array file?
template <typename T, std::size_t N = 64, typename A =
std::allocator<T> >
class segmented_iterator : public ::neolib::segmented_array<T, N,
A>::iterator
{
typedef typename ::neolib::segmented_array<T, N, A>::iterator
base;
public:
segmented_iterator(base const& x) : base(x) {}
typename base::segment_type& segment() { return base::seg(); }
};
That's a slightly modified version of something from the
segmented_array web pages. Tia.
Brian Wood
Ebenezer Enterprises
http://webEbenezer.net