当前位置:网站首页>STL的基本组成部分
STL的基本组成部分
2022-06-30 20:00:00 【兔云程序】

STL也许是大部分接口侠最钟爱的库了,在实际项目当中不用自己去封装数据结构,直接调用该库的接口能够高效率的实现数据结构与算法。标准模板库(Standard Template Library,简称STL)简单说,就是一些常用数据结构和算法的模板的集合。
通常认为,STL 是由容器、算法、迭代器、函数对象、适配器、内存分配器这 6 部分构成,其中后面 4 部分是为前 2 部分服务的。
广义上讲,STL分为3类:Algorithm(算法)、Container(容器)和Iterator(迭代器),容器和算法通过迭代器可以进行无缝地连接。
容器(Container)
一些封装数据结构的模板类,这部分数据结构基本就是常见的,被用于各种开源代码以及项目架构当中,包括vector,list,deque,set,mutilset,map,mutimap,stack,queue,priority-queue.可能很多跟我一样,基本只会用vector,list,map。而面试当中最经常问这些容器的底层实现以及效率。比如vector和list的查找效率。

算法(Algorithm)
边栏推荐
- Summary of operating system interview questions (updated from time to time)
- 为什么一定要从DevOps走向BizDevOps?
- Jerry's long press reset [chapter]
- Notes on modification of Jerry's test box pairing software [chapter]
- Client请求外部接口标准处理方式
- 漏洞扫描工具大全,妈妈再也不用担心我挖不到漏洞了
- Convert seconds to * * hours * * minutes
- All the important spark summit features were released here last night (with ultra clear video attached)
- NLP skill tree learning route - (I) route overview
- Solution to rollback of MySQL database by mistake deletion
猜你喜欢

DEX file parsing - Method_ IDS resolution

Tensorflow2.4 implementation of repvgg

MySQL master-slave synchronization

Introduction to neural network (Part 1)

分析超700万个研发需求发现,这八大编程语言才是行业最需要的

Tensorflow2.4实现RepVGG

GeoServer installation

杰理之触摸按键识别流程【篇】

大神详解开源 BUFF 增益攻略丨直播
![[try to hack] windows system account security](/img/2b/e6e999313e3ae4e1cbf4bfa02daef0.png)
[try to hack] windows system account security
随机推荐
How unity pulls one of multiple components
maya房子建模
Summary of PHP file upload (garbled code, move failure, permission, display picture)
Document contains & conditional competition
神经网络入门(上)
mysql主从同步
为什么一定要从DevOps走向BizDevOps?
Golang应用 ━━ 安装、配置与使用hugo博客系统
Introduction to neural network (Part 1)
Network planning | [five transport layers and six application layers] knowledge points and examples
Lambda expression principle analysis and learning (June 23, 2022)
Heartbeat 与DRBD 配置过程
QT :QAxObject操作Excel
DEX file parsing - Method_ IDS resolution
Lambda 表达式原理分析学习(2022.06.23)
最新海康摄像机、NVR、流媒体服务器、回放取流RTSP地址规则说明[通俗易懂]
Heartbeat uses NFS to make MySQL highly available based on CRM
Go language identifier and package name specification
Solve the problems of Devops landing in complex environment with various tools with full stack and full function solutions
PostgreSQL heap堆表 存储引擎实现原理