3 ms·
You can also use the std::size() free function to get the size of a C array, an std::array or any other standard container. http://en.cppreference.com/w/cpp/it
by mattnewport 9y ago
You can also use the std::size() free function to get the size of a C array, an std::array or any other standard container.
http://en.cppreference.com/w/cpp/iterator/size http://en.cppreference.com/w/cpp/iterator/size
- stabbles 9y agoA free function for this looks even better IMO.