1#include <array>
2#include <vector>
3
4#include <iterator>
5
6int main()
7{
8 int c_array[5] = {};
9 std::array<int, 5> cpp_array = {};
10 std::vector<int> cpp_dynarray(5);
11
12 auto c_array_begin = std::begin(c_array); // = c_array + 0
13 auto c_array_end = std::end(c_array); // = c_array + 5
14
15 auto cpp_array_begin = std::begin(cpp_array); // = cpp_array.begin()
16 auto cpp_array_end = std::end(cpp_array); // = cpp_array.end()
17
18 auto cpp_dynarray_begin = std::begin(cpp_dynarray); // = cpp_dynarray.begin()
19 auto cpp_dynarray_end = std::end(cpp_dynarray); // = cpp_dynarray.end()
20}