Template Function es::array_size¶
- Defined in File variable_readers.h
Function Documentation¶
-
template <size_t SIZE, class T>
size_tes
::
array_size
(T (&arr)[SIZE])¶ Return the size (i.e. number of elements) in an array variable Comes from https://coderwall.com/p/nb9ngq/better-getting-array-size-in-c
Example: int arr[] = {1, 2, 3, 4, 5}; std::cout << array_size(arr) << std::endl;