StupidBeauty
Read times:1506Posted at:Thu Jul 12 02:47:17 2012
- no title specified

转载:STL includes判断区间包含关系

可使用stl中的includes函数来判断一个集合是否是另一个集合的子集。

http://www.programlife.net/stl-includes.html

亮点:

if(includes(coll.begin(), coll.end(), sub.begin(), sub.end()))

{

cout << "sub is a sub set of coll" << endl;

}

else

{

cout << "not a sub set" << endl;

}

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands