3 ms·
Before the array decays to a pointer, you can get its length. Here is the implementation of std::begin for arrays in libc++: https://github.com/llvm-mirror/lib
by hendzen 11y ago
Before the array decays to a pointer, you can get its length.
Here is the implementation of std::begin for arrays in libc++:
https://github.com/llvm-mirror/libcxx/blob/60d223df071f6e3d4ffa29331ed466fff563096f/include/iterator#L1430-L1436 https://github.com/llvm-mirror/libcxx/blob/60d223df071f6e3d4...
- stormbrew 11y agoQuite right, I'm apparently rusty on my stdlib knowledge. Didn't know about the reference trick.