Subject: [boost] [util] Any interest in address_of_first_nonarray_elem ?
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2013-12-01 23:10:53
Working with built-in array objects I find myself repeatedly needing to
get the address of the first non-array element. This is so I can do
generic array comparisons and copies without resorting to multiple loops.
template <typename T, std::size_t N>
bool generic_array_equal(T (&lhs)[N], T const (&rhs)[N])
address_of_first_nonarray_elem(lhs) + total_extent<T[N]>::size,
Any interest in adding such a function to the util library?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk