当前位置:网站首页>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)
边栏推荐
- Common questions and answering skills of project manager interview
- QT :QAxObject操作Excel
- Client request external interface standard processing method
- obsidian配合hugo的使用,让markdown本地编辑软件与在线化无缝衔接
- Jerry's question about long press boot detection [chapter]
- Description of the latest RTSP address rules for Hikvision camera, NVR, streaming media server, playback and streaming [easy to understand]
- 【ICCV 2019】特征超分检测:Towards Precise Supervision of Feature Super-Resolution for Small Object Detection
- Black apple server system installation tutorial, black apple installation tutorial, teach you how to install black apple in detail [easy to understand]
- 1、生成对抗网络入门
- PM reports work like this, and the boss is willing to give you a raise
猜你喜欢

大神详解开源 BUFF 增益攻略丨直播
MySQL数据库误删回滚的解决

25:第三章:开发通行证服务:8:【注册/登录】接口:接收并校验“手机号和验证码”参数;(重点需要知道【利用redis来暂存数据,获取数据的】的应用场景)(使用到了【@Valid注解】参数校验)

Taihu Lake "China's healthy agricultural products · mobile phone live broadcast" enters Taihu Lake

Transport layer uses sliding window to realize flow control

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

Introduction to neural network (Part 1)

Exness: liquidity series - liquidity cleaning and reversal, decision interval
Redis ziplist 压缩列表的源码解析

神经网络入门(上)
随机推荐
CADD course learning (1) -- basic knowledge of drug design
exness:美GDP终值意外加速萎缩1.6%
SecureCRTPortable的安装和使用(图文详解)
DEX文件解析 - method_ids解析
exness:流动性系列-流动性清洗和反转、决策区间
Mistakes the project manager should not make
Static classes use @resource annotation injection
太湖 “中国健康农产品·手机直播万里行”走进太湖
杰理之触摸按键识别流程【篇】
Encoding type of Perl conversion file
Jerry's determination of detection sensitivity level [chapter]
Primary school, session 3 - afternoon: Web_ sessionlfi
项目经理面试常见问题及回答技巧
信息学奥赛一本通 1362:家庭问题(family)
大神详解开源 BUFF 增益攻略丨直播
漏洞扫描工具大全,妈妈再也不用担心我挖不到漏洞了
Graduates
Primary school, session 3 - afternoon: Web_ xxe
项目经理不应该犯的错误
Jenkins打包拉取不到最新的jar包