
9 Jul
2004
9 Jul
'04
12:32 p.m.
Russell Hind wrote:
Peter Dimov wrote:
Or maybe we should just use
int cv[] = { 1, 2, 3 }; v.assign( cv, end(cv) );
as I've been doing for years.
is 'end' in boost?
No, but I find template<class T, int N> T * end( T (&a) [N] ) { return a + N; } and #include <boost/utility/end.hpp> almost equally easy to type.