前言 最近正好刚刚看完,<stl源码剖析>这本书的map和set的源码部分.但是看完之后又突然发现,之前怎么没有注意到map和set容器中key不能修改是怎么实现的.故,特此整理如下. set容器中的实现 set中具体怎么实现的,看源码是最清楚的,下面就是set的部分源码: class set { ...... private: typedef rb_tree<key_type, value_type, identity<value_type>, key_compare, A
在写vue项目时,浏览器的console出现如下警告信息: [Vue warn]: Property or method "index" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing