C++高性能并行编程与优化 - 课件 - 14 C++ 标准库系列课 - 你所不知道的 set 容器你所不知道的 set 容 器 by 小彭老师( @archibate ) 课件 & 代码: https://github.com/parallel101/course 上期回顾: https://www.bilibili.com/video/BV1qF411T7sd 课程安排 1. vector 容器初体验 & 迭代器入门 (BV1qF411T7sd) 2. 你所不知道的 set 容器 & ,内存管理与对象生命周期 set 和 vector 的区别 • 都是能存储一连串数据的容器 。 • 区别 1 : set 会自动给其中的 元素从小到大排序,而 vector 会保持插入时的顺序。 • 区别 2 : set 会把重复的元素 去除,只保留一个,即去重。 • 区别 3 : vector 中的元素在内 存中是连续的,可以高效地按 索引随机访问, set 则不行。 • 区别 4 4 : set 中的元素可以高 效地按值查找,而 vector 则 低效。 set 的排序: string 会按“字典序”来排 • set 会从小到大排序,对 int 来 说就是数值的大小比较。那么对 字符串类型 string 要怎么排序 呢? • 其实 string 类定义了运算符重 载 < ,他会按字典序比较两个 字符串。所谓字典序就是优先比 较两者第一个字符(按 ASCII 码比较),如果相等则继续比较0 码力 | 83 页 | 10.23 MB | 1 年前3
JAVA 应用与开发 - 集合与映射JAVA 应用与开发 集合与映射 让我们愉快的 Coding 起来吧... ��� �������������� November 4, 2019 ���� �����List����Set�����Map�的������� ���������� ������iterator��Enumeration ��������� API ������的������������ 1 28 �������������������������� ������用� Java �集合�� 3 28 集合�� 集合�����用���������������合����� �� O 集合类型分类 � Set ��������的������������� ������������的��� �� List ������的��������������� ������的���������������� �������� 而非对象本身。Java API 中的集合类型均定义在 java.util 包中。 4 28 集合�� 集合�����用���������������合����� �� O 集合类型分类 � Set ��������的������������� ������������的��� �� List ������的��������������� ������的���������������� ��������0 码力 | 66 页 | 713.79 KB | 1 年前3
httpd 2.4.25 中文文档configure: By default, only a basic set of modules is loaded. The other LoadModule directives are commented out in the configuration file. configure: the "most" module set gets built by default configure: configure: the "reallyall" module set adds developer modules to the "all" set Run Time Configuration Changes There have been significant changes in authorization configuration, and other minor configuration changes The maximum line length is now limited to 1MB. mod_reqtimeout: If the module is loaded, it will now set some default timeouts. mod_dumpio: DumpIOLogLevel is no longer supported. Data is always logged at0 码力 | 2573 页 | 2.12 MB | 1 年前3
httpd 2.4.23 中文文档configure: By default, only a basic set of modules is loaded. The other LoadModule directives are commented out in the configuration file. configure: the "most" module set gets built by default configure: configure: the "reallyall" module set adds developer modules to the "all" set Run Time Configuration Changes There have been significant changes in authorization configuration, and other minor configuration changes The maximum line length is now limited to 1MB. mod_reqtimeout: If the module is loaded, it will now set some default timeouts. mod_dumpio: DumpIOLogLevel is no longer supported. Data is always logged at0 码力 | 2559 页 | 2.11 MB | 1 年前3
httpd 2.4.20 中文文档configure: By default, only a basic set of modules is loaded. The other LoadModule directives are commented out in the configuration file. configure: the "most" module set gets built by default configure: configure: the "reallyall" module set adds developer modules to the "all" set Run Time Configuration Changes There have been significant changes in authorization configuration, and other minor configuration changes The maximum line length is now limited to 1MB. mod_reqtimeout: If the module is loaded, it will now set some default timeouts. mod_dumpio: DumpIOLogLevel is no longer supported. Data is always logged at0 码力 | 2533 页 | 2.09 MB | 1 年前3
Blender v4.1 Manualinternal software development. After careful deliberation, Ton decided that the current in-house 3D tool set for NeoGeo was too old and cumbersome to maintain, and needed to be rewritten from scratch. In 1995 Always check that the graphics drivers are up to date and that OpenGL is well supported. Blender has a set of minimum and recommended requirements; so make sure these are met before trying to install Blender Mouse. Select Edge Loops. Changing multiple properties at once. To access Blender’s full feature set, you can change the window manager settings to use the Meta key instead (also called Super or Windows0 码力 | 6263 页 | 303.71 MB | 1 年前3
httpd 2.4.33 中文文档configure: By default, only a basic set of modules is loaded. The other LoadModule directives are commented out in the configuration file. configure: the "most" module set gets built by default configure: configure: the "reallyall" module set adds developer modules to the "all" set Run Time Configuration Changes There have been significant changes in authorization configuration, and other minor configuration changes The maximum line length is now limited to 1MB. mod_reqtimeout: If the module is loaded, it will now set some default timeouts. mod_dumpio: DumpIOLogLevel is no longer supported. Data is always logged at0 码力 | 2692 页 | 3.12 MB | 1 年前3
httpd 2.4.28 中文文档configure: By default, only a basic set of modules is loaded. The other LoadModule directives are commented out in the configuration file. configure: the "most" module set gets built by default configure: configure: the "reallyall" module set adds developer modules to the "all" set Run Time Configuration Changes There have been significant changes in authorization configuration, and other minor configuration changes The maximum line length is now limited to 1MB. mod_reqtimeout: If the module is loaded, it will now set some default timeouts. mod_dumpio: DumpIOLogLevel is no longer supported. Data is always logged at0 码力 | 2659 页 | 3.10 MB | 1 年前3
OpenShift Container Platform 4.10 CLI 工具config 命令,而不是直接修改这些文件。oc config 命令 包括很多有用的子命令来实现这一目的: 表 表 2.1. CLI 配置子命令 配置子命令 子命令 子命令 使用方法 使用方法 set- cluster 在 CLI 配置文件中设置集群条目。如果引用的 cluster nickname 已存在,则指定的信息将合并到其 中。 Using project "joe-project" server "https://openshift1.example.com:8443". $ oc login -u system:admin -n default $ oc config set-cluster[--server= ] [--certificate-authority= ] fy=true] 第 第 2 章 章 OPENSHIFT CLI (OC) 17 set- context 在 CLI 配置文件中设置上下文条目。如果引用的上下文 nickname 已存在,则指定的信息将合并在. use- context 使用指定上下文 nickname 设置当前上下文。 set 在 CLI 配置文件中设置单个值。 是一个以点分隔的名称,每个令牌代表属性名称或映射 0 码力 | 120 页 | 1.04 MB | 1 年前3
OpenShift Container Platform 4.8 CLI 工具config 命令,而不是直接修改这些文件。oc config 命令 包括很多有用的子命令来实现这一目的: 表 表 2.1. CLI 配置子命令 配置子命令 子命令 子命令 使用方法 使用方法 set- cluster 在 CLI 配置文件中设置集群条目。如果引用的 cluster nickname 已存在,则指定的信息将合并到其 中。 Using project "joe-project" server "https://openshift1.example.com:8443". $ oc login -u system:admin -n default $ oc config set-cluster[--server= ] [--certificate-authority= ] fy=true] 第 第 2 章 章 OPENSHIFT CLI (OC) 17 set- context 在 CLI 配置文件中设置上下文条目。如果引用的上下文 nickname 已存在,则指定的信息将合并在. use- context 使用指定上下文 nickname 设置当前上下文。 set 在 CLI 配置文件中设置单个值。 是一个以点分隔的名称,每个令牌代表属性名称或映射 0 码力 | 152 页 | 1.24 MB | 1 年前3
共 664 条
- 1
- 2
- 3
- 4
- 5
- 6
- 67













