const_iterator cbegin() const noexcept; (C++11 起) 返回指向 set 首元素的迭代器。 若set 为空,则返回的迭代器将等于 end()。 参数 (无) 返回值 指向首元素的迭代器。 复杂度 常数。 注意 因为iterator 和const_iterator 都是常迭代器(而且实际上可以是同一类型),故不可能通过任何这些成员函数返回的迭...
begincbegin (C++11) 返回指向起始的迭代器 (公开成员函数) endcend (C++11) 返回指向末尾的迭代器 (公开成员函数) rbegincrbegin (C++11) 返回指向起始的逆向迭代器 (公开成员函数) rendcrend (C++11) 返回指向末尾的逆向迭代器 (公开成员函数) 容量 empty 检查容器是否为空 (公开成员...
std::set::cbegin std::set::cend std::set::clear std::set::count std::set::crbegin std::set::crend std::set::emplace std::set::emplace_hint std::set::empty std::set::end std::set::equal_range std::set::erase std::set::extract std::set::find std::set::get_allocator std...
int main() { // cbegin/cend(c++11): Returns a const_iterator pointing to the first element in the container/ // Returns a const_iterator pointing to the past-the-end element in the container std::set<int> myset = { 50, 20, 60, 10, 25 }; std::cout << "myset contains:"; f...
begin cbegin 返回指向容器第一个元素的迭代器 (公开成员函数) end cend 返回指向容器尾端的迭代器 (公开成员函数) rbegin crbegin 返回指向容器最后元素的逆向迭代器 (公开成员函数) rend crend 返回指向前端的逆向迭代器 (公开成员函数) 容量 empty 检查容器是否为空 (公开成员函数) size ...
begin cbegin (C++11) 返回指向起始的迭代器 (公开成员函数) end cend (C++11) 返回指向末尾的迭代器 (公开成员函数) rbegin crbegin (C++11) 返回指向起始的逆向迭代器 (公开成员函数) rend crend (C++11) 返回指向末尾的逆向迭代器 (公开成员函数) 容量 empty 检查容器是否为空 (公...
cbeginReturn const_iterator to beginning (public member function ) cendReturn const_iterator to end (public member function ) crbeginReturn const_reverse_iterator to reverse beginning (public member function ) crendReturn const_reverse_iterator to reverse end (public member function ) ...
begin(size_type) cbegin(size_type) 返回一个迭代器,指向指定的桶的开始 (公开成员函数) end(size_type) cend(size_type) 返回一个迭代器,指向指定的桶的末尾 (公开成员函数) bucket_count 返回桶数 (公开成员函数) max_bucket_count 返回桶的最大数量 (公开成员函数) bucket_size 返回在特定的桶中的...
std::set<Key,Compare,Allocator>::begin,std::set<Key,Compare,Allocator>::cbegin From cppreference.com <cpp |container |set Containers library Sequence array (C++11) vector vector<bool> inplace_vector (C++26) deque forward_list
std::array::cbegin std::array::cend std::array::crbegin std::array::crend std::array::data std::array::empty std::array::end std::array::fill std::array::front std::array::max_size std::array::operator[] std::array::rbegin std::array::rend std::array::size std::array::swap...