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

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

C++ std::multiset find 返回值不对

软件工程小施同学 发布时间:2021-10-18 19:26:00 ,浏览量:0

不是不对!而是下面的规则

find(elem)

返回元素值为elem的第一个元素,如果没有返回end()

【C++ STL】Set和Multiset - Memset - 博客园

#include 
#include 
using namespace std;

class stru{
	public:
   	 	stru(int a, int b): x(a), y(b){}
		int x;
   	 	int y;
};
 
bool operator            
关注
打赏
1665320866
查看更多评论
0.0462s