[multiarray] How to make a generic one from an existing C multi-array.
27 Nov
2013
27 Nov
'13
1:17 a.m.
Given the following: template <typename T, std::size_t D1> void foo(T (&arr)[D1]) { typedef boost::multi_array_ref < typename boost::remove_all_extents<T>::type, boost::rank<T[D1]>::value
arr_type;
// ? = ExtentList or extents_tuple. arr_type ma(arr, ?); } Are there any existing tools to create an ExtentList or extents_tuple obj from the type of arr? Thanks, Mostafa
3950
Age (days ago)
3950
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mostafa