|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-07-09 07:32:34
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk