C++編程 - tuple、any容器

C++編程 - tuple、any容器編程 flyfish 2014-10-29函數 一 tuple tuple是固定大小的容器,每一個元素類型能夠不一樣 做用1 替換structcode struct t1 { int nID; double dVal; }; 替換爲 typedef std::tuple<int,double> t1; 做用2 任意個數的函數返回值 寫法1 std::tuple
相關文章
相關標籤/搜索