博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C++ 标准库之algorithm
阅读量:7013 次
发布时间:2019-06-28

本文共 4128 字,大约阅读时间需要 13 分钟。

The header <algorithm> defines a collection of functions especially designed to be used on ranges of elements.

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 in <algorithm>

Non-modifying sequence operations :

Modifying sequence operations :

Sorting :

Binary search (operating on sorted ranges):

Merge (operating on sorted ranges):

Heap :

Min/max :

 
原载地址:

转载于:https://www.cnblogs.com/zhongwh/archive/2012/01/19/2326060.html

你可能感兴趣的文章
每日一小练——二项式系数加法解
查看>>
django中的setting全局变量的导入
查看>>
常见的几种Flume日志收集场景实战
查看>>
一次误报引发的DNS检测方案的思考:DNS隧道检测平民解决方案
查看>>
Python操作SQLAlchemy之连表操作
查看>>
什么是架构师?
查看>>
layer.alert自定义关闭回调事件
查看>>
LESS IS MORE
查看>>
用最短的payload绕过WAF(入门)
查看>>
会话跟踪session
查看>>
微观经济学--经济学十大原理
查看>>
Tablayout ViewPage 使用示例
查看>>
linux下面MySQL变量修改及生效
查看>>
Android 6.0 如何默认打开user版本的root权限【转】
查看>>
TP框架在做上传时候提示:没有上传的文件!
查看>>
leetcode 485. Max Consecutive Ones
查看>>
IDEA使用笔记(九)——设置文件注释
查看>>
漫谈Java IO之基础篇
查看>>
CentOS 6.8 防火墙配置
查看>>
Spring Boot 2.0 整合 FreeMarker 模板引擎
查看>>