std::find(vector.begin(), vector.end(), item)!=vector.end()
2. 从iterator得到位置( position )
it = std::find(vector.begin(), vector.end(), item)
if(it != v.end())
{
return it - v.start();
}
//z 2014-06-04 16:44:23 L.210'26137 BG57IV3 T3063650537.K.F1370514324[T5,L93,R2,V103]
cpp0x cpp1x
3. visual c++ 2013 对 __func__ 的支持
void hello() { cout << __FUNCDNAME__ << endl; cout << __FUNCSIG__ << endl; cout << __FUNCTION__ << endl; } /* Output ?hello@@YAXXZ void __cdecl hello(void) hello */