当前位置:网站首页>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)
边栏推荐
猜你喜欢

DEX文件解析 - method_ids解析

Detailed explanation of specific methods and steps for TCP communication between s7-1500 PLCs (picture and text)

exness:美GDP终值意外加速萎缩1.6%

神经网络入门(上)

Exness: liquidity series - liquidity cleaning and reversal, decision interval

Torchdrug -- drug attribute prediction

Maya House Modeling

1、生成对抗网络入门

以全栈全功能解决方案,应对多样工具复杂环境DevOps落地难题

The Commission is so high that everyone can participate in the new programmer's partner plan
随机推荐
最新海康摄像机、NVR、流媒体服务器、回放取流RTSP地址规则说明[通俗易懂]
杰理之触摸按键识别流程【篇】
以全栈全功能解决方案,应对多样工具复杂环境DevOps落地难题
Pytorch implements the calculation of flops and params
Notes on modification of Jerry's test box pairing software [chapter]
Heartbeat uses NFS to make MySQL highly available based on CRM
Jerry's touch key recognition process [chapter]
Jerry's touch key recognition process [chapter]
Is it safe to open an account for online stock trading!?
Detailed steps for Django to upload excel tables and write data to the database
NLP skill tree learning route - (I) route overview
Jerry's touch key recognition process [chapter]
Client request external interface standard processing method
mysql登录出现1045错误修改方法[通俗易懂]
静态类使用@Resource注解注入
Client请求外部接口标准处理方式
Originpro 2021 with installation tutorial
CADD course learning (2) -- target crystal structure information
Openfire在使用MySQL数据库后的中文乱码问题解决
Informatics Olympiad 1362: family problems