![](https://img-blog.csdnimg.cn/20190927151117521.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
STL
文章平均质量分 59
C++STL的使用
memcpy0
希望探索文理结合的自由之路。
展开
-
LeetCode C++ 1310. XOR Queries of a Subarray【前缀和/STL】中等
Given the array arr of positive integers and the array queries where queries[i] = [Li, Ri], for each query i compute the XOR of elements from Li to Ri (that is, arr[Li] xor arr[Li+1] xor … xor arr[Ri] ). Return an array containing the result for原创 2021-05-12 01:27:08 · 174 阅读 · 1 评论 -
【现代C++】functional模板库之function详解
文章目录1. 参考文档2. `std::funtion` 简介3. `std::function` 样例① 包装普通函数② 包装普通函数指针③ 包装类成员函数指针a. 类静态成员函数b. 类对象成员函数④ 包装函数对象⑤ 包装lambda表达式对象1. 参考文档两个常用的C++参考文档:cplusplus.com:http://www.cplusplus.com/reference/functional/function/cppreference.com:https://en.cpprefere原创 2020-12-15 16:31:53 · 2036 阅读 · 0 评论