JustDoItTomorrow
3/7/2018 - 2:48 AM

获取数组长度

template<class T>
int length(T& arr)
{
    return sizeof(arr) / sizeof(arr[0]);
}