【转载】algorithm、numeric、functional
reference url:http://www.cplusplus.com/reference/algorithm
reference url:https://blog.csdn.net/Swust_Zeng_zhuo_K/article/details/80113384
<algorithm>
Standard Template Library: Algorithms
The header <algorithm>
A range is any sequence of objects that can be accessed through iterators or pointers, such as an array or an instance of some of the . Notice though, that algorithms operate through iterators directly on the values, not affecting in any way the structure of any possible container (it never affects the size or storage allocation of the container).
Functions
Non-modifying sequence operations
-
Test if any element in range fulfills condition (function template )
-
Test if no elements fulfill condition (function template )
-
Apply function to range (function template )
-
Find value in range (function template )
-
Find element in range (function template )
-
Find element in range (negative condition) (function template )
-
Find last subsequence in range (function template )
-
Find element from set in range (function template )
-
Find equal adjacent elements in range (function template )
-
Count appearances of value in range (function template )
-
Return number of elements in range satisfying condition (function template )
-
Return first position where two ranges differ (function template )
-
Test whether the elements in two ranges are equal (function template )
-
Test whether range is permutation of another (function template )
-
Search range for subsequence (function template )
-
Search range for elements (function template )
Modifying sequence operations
-
Copy elements (function template )
-
Copy certain elements of range (function template )
-
Copy range of elements backward (function template )
-
Move range of elements (function template )
-
Move range of elements backward (function template )
-
Exchange values of two objects (function template )
-
Exchange values of two ranges (function template )
-
Exchange values of objects pointed to by two iterators (function template )
-
Transform range (function template )
-
Replace value in range (function template )
-
Replace values in range (function template )
-
Copy range replacing value (function template )
-
Copy range replacing value (function template )
-
Fill range with value (function template )
-
Fill sequence with value (function template )
-
Generate values for range with function (function template )
-
Generate values for sequence with function (function template )
-
Remove value from range (function template )
-
Remove elements from range (function template )
-
Copy range removing value (function template )
-
Copy range removing values (function template )
-
Remove consecutive duplicates in range (function template )
-
Copy range removing duplicates (function template )
-
Reverse range (function template )
-
Copy range reversed (function template )
-
Rotate left the elements in range (function template )
-
Copy range rotated left (function template )
-
Randomly rearrange elements in range (function template )
-
Randomly rearrange elements in range using generator (function template )
Partitions
-
Partition range in two (function template )
-
Partition range in two - stable ordering (function template )
-
Partition range into two (function template )
-
Get partition point (function template )
Sorting
-
Sort elements preserving order of equivalents (function template )
-
Partially sort elements in range (function template )
-
Copy and partially sort range (function template )
-
Check whether range is sorted (function template )
-
Find first unsorted element in range (function template )
-
Sort element in range (function template )
Binary search
-
Return iterator to upper bound (function template )
-
Get subrange of equal elements (function template )
-
Test if value exists in sorted sequence (function template )
Merge
-
Merge consecutive sorted ranges (function template )
-
Test whether sorted range includes another sorted range (function template )
-
Union of two sorted ranges (function template )
-
Intersection of two sorted ranges (function template )
-
Difference of two sorted ranges (function template )
-
Symmetric difference of two sorted ranges (function template )
Heap
-
Pop element from heap range (function template )
-
Make heap from range (function template )
-
Sort elements of heap (function template )
-
Test if range is heap (function template )
-
Find first element not in heap order (function template )
Min/max
-
Return the largest (function template )
-
Return smallest and largest elements (function template )
-
Return smallest element in range (function template )
-
Return largest element in range (function template )
-
Return smallest and largest elements in range (function template )
Other
-
Transform range to next permutation (function template )
-
Transform range to previous permutation (function template )
<numeric>
Generalized numeric operations
This header describes a set of algorithms to perform certain operations on sequences of numeric values.
Due to their flexibility, they can also be adapted for other kinds of sequences.
Functions
-
Accumulate values in range (function template )
-
Compute adjacent difference of range (function template )
-
Compute cumulative inner product of range (function template )
-
Compute partial sums of range (function template )
-
Store increasing sequence (function template )
<functional>
Function objects
Function objects
They are typically used as arguments to functions, such as predicates or comparison functions passed to standard algorithms
Functions
These functions create objects of wrapper classes based on its arguments:
-
Construct reference_wrapper to const (function template )
-
Convert member function to function object (function template )
-
Return negation of unary function object (function template )
-
Return negation of binary function object (function template )
-
Construct reference_wrapper (function template )
Classes
Wrapper classes
Wrapper classes
-
Function wrapper (class template )
-
Reference wrapper (class template )
-
Negate unary function object class (class template )
Operator classes
Operator classes
-
Bitwise OR function object class (class template )
-
Bitwise XOR function object class (class template )
-
Division function object class (class template )
-
Function object class for equality comparison (class template )
-
Function object class for greater-than inequality comparison (class template )
-
Function object class for greater-than-or-equal-to comparison (class template )
-
Function object class for less-than inequality comparison (class template )
-
Function object class for less-than-or-equal-to comparison (class template )
-
Logical AND function object class (class template )
-
Logical NOT function object class (class template )
-
Logical OR function object class (class template )
-
Subtraction function object class (class template )
-
Modulus function object class (class template )
-
Multiplication function object class (class template )
-
Negative function object class (class template )
-
Function object class for non-equality comparison (class template )
-
Addition function object class (class template )
Other classes
-
Exception thrown on bad call (class )
-
Default hash function object class (class template )
-
Is bind expression (class template )
-
Is placeholder (class template )
Namespaces
-
Bind argument placeholders (namespace )
【转载】algorithm、numeric、functional的更多相关文章
- C++ STL 一般总结(转载)
注:原博地址:http://www.cnblogs.com/biyeymyhjob/archive/2012/07/22/2603525.html 以下内容来源网上 经过整合而成 一.一般介绍 STL ...
- C++ STL 一般总结
以下内容来源网上 经过整合而成(转载) 一.一般介绍 STL(Standard Template Library),即标准模板库,是一个具有工业强度的,高效的C++程序库.它被容纳于C++标准程序库( ...
- C++的STL
今天,看一段代码的时候发现只一句话就做了个排序,是这样的: sort(rotateArray.begin(),rotateArray.end()); 很震惊,后来查了一下sort的用法, sort函数 ...
- STL---总结
文章转自:http://www.cnblogs.com/biyeymyhjob/archive/2012/07/22/2603525.html 一.STL的六大组件 容器(Container),是一种 ...
- c++中级 STL基础学习(二)
deque 和vector差不多,可以在前端后端插入,一般用deque取代vector,vector只能在后端插入push_back().deque还可以push_front(),但是deque后端插 ...
- C++中的容器类详解
一.STL容器类 STL(Standard Template Library)的六大组件:容器(containers).迭代器(iterators).空间配置器(allocator).配接器(adap ...
- STL算法
STL算法部分主要由头文 件<algorithm>,<numeric>,<functional>组成.要使用 STL中的算法函数必须包含头文件<algorit ...
- 【STL源码学习】STL算法学习之一
第一章:引子 STL包含的算法头文件有三个:<algorithm><numeric><functional>,其中最大最常用的是<algorithm>, ...
- STL中的所有算法(70个)
STL中的所有算法(70个)----9种类型(略有修改by crazyhacking) 参考自: http://www.cppblog.com/mzty/archive/2007/03/14/1981 ...
- C++之STL总结精华笔记
一.一般介绍 STL(StandardTemplate Library),即标准模板库,是一个具有工业强度的,高效的C++程序库.它被容纳于C++标准程 ...
随机推荐
- CSS中的变量使用,var()语法
参考博客:https://blog.csdn.net/qq_34206361/article/details/53690414
- Spring、SpringMVC、SpringBoot、SpringCloud的区别与联系
前言 Spring是一个轻量级的控制反转(IoC)和面向切面(AOP)的容器框架.Spring使你能够编写更干净.更可管理.并且更易于测试的代码. Spring MVC是Spring的一个模块,一个w ...
- 最新115道华为、京东、滴滴、美团精选Java面试题整理
京东面试题 1. 一般sql注入怎么发现触点的,从源码阐述sqlmap如何测试注入点的. 2. masscan扫描端口时靠什么检测,为什么这么快? 请详述. 3. 你写过哪些小工具,你为你使用过的工具 ...
- 大白话简单工厂模式 (Simple Factory Pattern)
大白话简单工厂模式 (Simple Factory Pattern) 从买车经历说起 毕业两年,码农张小两口无法忍受挤公交,凌晨起床抢火车票的痛苦,遂计划买车.逛了多家4S店,最终定下日产某车型的轿车 ...
- 运用Java调用Kettle Job和Trans(带参数)
1.首先创建一个kettle trans 2.对表输入进行编辑 ${dateNow}为要传入的参数. 3.代码编写 首先需要把包导入 import org.pentaho.di.core.Kettle ...
- Rancher 2.3实现K8S一键式升级!再也不用同步升级Rancher啦!
在Rancher 2.3之前,Rancher的新版本总是随着Kubernetes的新版本一起发布,如果你想要使用最新版本的Kubernetes,那么你需要先升级Rancher才能使用.Rancher ...
- C# List集合 GroupBy分组
var grpBalance = listBalance.GroupBy(m => new { m.MerChantId, m.Name}).Distinct().Select(t => ...
- abp模块生命周期设计思路剖析
abp中将生命周期事件抽象为4个接口: //预初始化 public interface IOnPreApplicationInitialization { void OnPreApplicationI ...
- Client error attempting to change layout margins of a private view
从 iOS 11 开始,UINavigationBar 使用了自动布局,左右两边的按钮到屏幕之间会有 16 或 20 的边距. 为了避免点击到间距的空白处没有响应,通常做法是:定义一个 UINavig ...
- SpringBoot+Redis简单使用
1.引入依赖 在pom.xml中加入 <dependency> <groupId>org.springframework.boot</groupId> <ar ...