您当前的位置: 首页 >  c++
  • 0浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

C++ std::multiset返回值 has no member named ‘first’

软件工程小施同学 发布时间:2021-10-15 11:06:00 ,浏览量:0

error: ‘std::multiset::iterator {aka struct std::_Rb_tree_const_iterator}’ has no member named ‘first’  

multiset返回的直接是迭代器,所以没有first

// INTEGER EXAMPLE 
// CPP program to illustrate 
// Implementation of emplace() function 
#include  
#include  
using namespace std; 
  
int main() 
{ 
    multiset mymultiset{}; 
    auto result = mymultiset.emplace(3); 
    cout             
关注
打赏
1665320866
查看更多评论
2.5376s