Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. C++中的iterator->second

C++中的iterator->second

  • Post author:xfxia
  • Post published:2023年9月18日
  • Post category:其他


iterator->second意思

转自

http://lib.csdn.net/article/cplusplus/36005



std::map<X, Y>

实际储存了一串

std::pair<const X, Y>

std::map<std::string, int> m = /* fill it */;
auto it = m.begin();

这里,如果你用

*it

,那么你将得到

map

第一个元素的

std::pair

:

现在你可以接收

std::pair

的两个元素:


(*it).first

会得到key,


(*it).second

会得到value。

这等同于

it->first

和

it->second

。


你可能也喜欢

Spring-AOP-01

ajax返回数据的遍历$.each(json,function(index,item)

Oracle查看当前登陆用户的权限或者角色

位运算实现加法

UE4 打包:Plugin failed to load because module could not be found

41 | 查看日志的方法

一文入门babel

Sql Server中将日期转换为yyyy-mm格式

Mybatis复杂查询

odl安装的一些坑

经纬度正则

c#将txt文本内容传输至数据库

jsPDF使用技巧

nmcli device state-unmanaged

2017CVPR、ICCV和NIPS在Person Reidentification方向的相关工作小结

目标主体名称不正确,无法生成 SSPI 上下文。

9.28 – 每日一题 – 408

XML学习之Xml Schema:五、复杂类型–Attribute

kubernetes 静态存储与动态存储

PAT-B 1024. 科学计数法 (20)

目录

  • APICloud (3)
  • golang (228)
  • java (8,236)
  • linux (4,002)
  • mysql (2,800)
  • php (1,070)
  • python (5,439)
  • solidity (25)
  • uniapp (235)
  • vue (2,463)
  • 其他 (88,233)
  • 小程序 (801)

文章归档

  • 2023年十二月 (1872)
  • 2023年十一月 (477)
  • 2023年十月 (17371)
  • 2023年九月 (44974)
  • 2023年八月 (26399)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (255) flag (27) gitee (1) github (1) golang (234) java (8234) linux命令 (82) List (1) map (1115) mysql (3093) npm (237) tendermint (6) uuid (43) vant (64) vmware (270) 区块链 (63) 合约 (37) 小程序版本更新 (3)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单