zoukankan      html  css  js  c++  java
  • vector tips

    1. 查找vector中某个元素是否存在

    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
    */


  • 相关阅读:
    2018.11.26
    JS数组
    JS2018.12.26
    手机游戏客户端架构设计
    IAP应用内购买
    cocos2dx如何优化内存的应用
    Homebrew
    OS X 文档
    Apple推送通知服务教程
    ajax分页
  • 原文地址:https://www.cnblogs.com/IS2120/p/6745950.html
Copyright © 2011-2022 走看看