在C++中定义的begin()和end()函数在哪里?

BVB*_*VBC 2 c++ iterator

在cppreference.com中,它指出begin()end()函数是在头文件中定义的< iterator >.但我仍然可以使用begin()end()函数而不包括< iterator >标题.我想知道为什么?是因为我使用;

using namespace std;
Run Code Online (Sandbox Code Playgroud)

它包括在内吗?

Moh*_*ain 9

同一页面上的笔记中读取:

除了被列入<iterator>,std::begin是保证成为可用如有下列头包括:<array>,<deque>,<forward_list>,<list>,<map>,<regex>,<set>,<string>,<unordered_map>,<unordered_set>,和<vector>.

除了这些标题列表之外,std::begin还可以包含其他标题.