国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > C++ > 正文

c++ STL函數

2019-11-06 08:11:29
字體:
來源:轉載
供稿:網友

c++ 無法通過 auto編譯

g++ -std=c++11 test.cpp

find

template <class InputIterator, class T>InputIterator find (InputIterator first, InputIterator last, const T& val);

Returns an iterator to the first element in the range [first,last) that compares equal to val. If no such element is found, the function returns last. http://www.cplusplus.com/reference/algorithm/find/

copy

template <class InputIterator, class OutputIterator>OutputIterator copy (InputIterator first, InputIterator last, OutputIterator result);

Copies the elements in the range [first,last) into the range beginning at result. http://www.cplusplus.com/reference/algorithm/copy/

copy_backward

template <class BidirectionalIterator1, class BidirectionalIterator2>BidirectionalIterator2 copy_backward (BidirectionalIterator1 first, BidirectionalIterator1 last, BidirectionalIterator2 result);

Bidirectional iterators to the initial and final positions in a sequence to be copied. The range used is [first,last), which contains all the elements between first and last, including the element pointed by first but not the element pointed by last. 從result指針的前一位開始,result指針前一位用last指針的前一位代替,result指針前2位用last指針的前2位代替. http://www.cplusplus.com/reference/algorithm/copy_backward/


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 加查县| 焉耆| 额济纳旗| 仁化县| 息烽县| 射阳县| 绥中县| 大化| 石阡县| 绵竹市| 固镇县| 新竹市| 类乌齐县| 项城市| 淮滨县| 奇台县| 雷州市| 老河口市| 东港市| 海门市| 安仁县| 商南县| 普定县| 常山县| 柳林县| 建湖县| 靖边县| 夹江县| 宣城市| 西林县| 桐庐县| 邻水| 富宁县| 中阳县| 磐石市| 无极县| 苗栗市| 都江堰市| 开平市| 合阳县| 札达县|