 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 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 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.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.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 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
 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.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.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 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
 httpd 2.4.18 中文文档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 码力 | 2467 页 | 1.89 MB | 1 年前3 httpd 2.4.18 中文文档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 码力 | 2467 页 | 1.89 MB | 1 年前3
 httpd 2.4.17 中文文档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 码力 | 2455 页 | 1.88 MB | 1 年前3 httpd 2.4.17 中文文档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 码力 | 2455 页 | 1.88 MB | 1 年前3
 httpd 2.2.31 中文文档that it has been greatly simplified by removing all but the most essential configuration settings. A set of example configuration settings for more advanced features is present in the conf/extra/ directory execute special code only when the user passes -t to httpd. Set Threaded MPM's Stacksize A new directive, ThreadStackSize has been added to set the stack size on all threaded MPMs. This is required for Multiprotocol Support Apache now has some of the infrastructure in place to support serving multiple protocols. mod_echo has been written as an example. Better support for non-Unix platforms Apache 2.0 is0 码力 | 1860 页 | 1.48 MB | 1 年前3 httpd 2.2.31 中文文档that it has been greatly simplified by removing all but the most essential configuration settings. A set of example configuration settings for more advanced features is present in the conf/extra/ directory execute special code only when the user passes -t to httpd. Set Threaded MPM's Stacksize A new directive, ThreadStackSize has been added to set the stack size on all threaded MPMs. This is required for Multiprotocol Support Apache now has some of the infrastructure in place to support serving multiple protocols. mod_echo has been written as an example. Better support for non-Unix platforms Apache 2.0 is0 码力 | 1860 页 | 1.48 MB | 1 年前3
共 729 条
- 1
- 2
- 3
- 4
- 5
- 6
- 73














 
 