Designing Fast and Efficient List-like Data StructuresList-like data structures std::vector std::list std::dequestd::vector C++ version of the array-list data structure Backed by a C-style array Automatically allocates a new backing array when inserting (O(n))std::list C++ version of the linked-list data structure Elements stored in nodes referencing the next nodestd::list Node Node Node Node Node Node std::list First Laststd::list Inserting byte ...std::list with custom allocator Idea: minimize cache misses by grouping consecutive nodes into contiguous memorystd::list with custom allocator Node Node Node Node Node std::list First Laststd::list0 码力 | 29 页 | 852.61 KB | 6 月前3
JAVA 应用与开发 - 集合与映射JAVA 应用与开发 集合与映射 让我们愉快的 Coding 起来吧... ��� �������������� November 4, 2019 ���� �����List����Set�����Map�的������� ���������� ������iterator��Enumeration ��������� API ������的������������ 1 28 集合�� 集合�����用���������������合����� �� O 集合类型分类 � Set ��������的������������� ������������的��� �� List ������的��������������� ������的���������������� �������� �� Map �����的��¡���Key-Value������ �������的��������������� 集合�� 集合�����用���������������合����� �� O 集合类型分类 � Set ��������的������������� ������������的��� �� List ������的��������������� ������的���������������� �������� �� Map �����的��¡���Key-Value������ �������的���������������0 码力 | 66 页 | 713.79 KB | 1 年前3
Reference guide for FCL units. Document version 3.2.2TFPHashList.Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 8.16.27 TFPHashList.List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 8.16.28 TFPHashList.Strs . . TFPHashObjectList.Items . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 8.18.27 TFPHashObjectList.List . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 8.19 TFPObjectHashTable . . . . . . TFPObjectList.Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 8.20.27 TFPObjectList.List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 8.21 TFPStringHashTable . . .0 码力 | 953 页 | 2.21 MB | 1 年前3
Haskell 2010 Language ReportArithmetic Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.11 List Comprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.12 functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 13.2.3 Generalisations of list functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 13.2.4 Conditional execution . . . . 186 viii CONTENTS 20 Data.List 189 20.1 Basic functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 20.2 List transformations . . . . . . . . . .0 码力 | 329 页 | 1.43 MB | 1 年前3
The Hitchhiker’s Guide to
Logical Verification. . . . . . . . . . . . . . . . . . . . . . . . . . 105 6.9 A Generic Algorithm: Iteration over a List . . . . . . . . . . . . . . . . . 105 6.10 Summary of New Lean Constructs . . . . . . . . . . . . Proof Assistants There are dozens of proof assistants in development or use across the world. A list of the main ones follows, classified by logical foundations: set theory: Isabelle/ZF, Metamath, Mizar; pressing the tab key or the space bar. We will freely use these notations. For reference, we provide a list of the main non-ASCII symbols that are used in the guide and, for each, one of its ASCII representations0 码力 | 215 页 | 1.95 MB | 1 年前3
Falcon v1.0.0 Documentationour Add-on Catalog [https://github.com/falconry/falcon/wiki/Add- on-Catalog], where you can find a list of add-ons maintained by the community. Useful Links Falcon Home [http://falconframework.org/] Falcon like to invite you to help other community members with their questions in IRC and on the mailing list, and to help peer-review pull requests [https://github.com/racker/falcon/pulls]. If you use the Chrome body isn’t being returned to the client, it’s probably a bug! Let us know in IRC or on the mailing list so we can help. My app is setting a cookie, but it isn’t being passed back in subsequent requests0 码力 | 312 页 | 368.58 KB | 1 年前3
Theorem Proving in Lean
Release 3.23.0is another example: given any type α, the type list α denotes the type of lists of elements of type α. constant α : Type #check list α -- Type #check list nat -- Type For those more comfortable with element, and Type 2 is an even larger universe of types, which contains Type 1 as an element. The list is indefinite, so that there is a Type n for every natural number n. Type is an abbreviation for Type universes. For example, list α should make sense for any type α, no matter which type universe α lives in. This explains the type annotation of the function list: #check list -- Type u_1 → Type u_1 Here0 码力 | 173 页 | 777.93 KB | 1 年前3
Mypy 1.8.0 Documentationas “a list of strings” or “an iterable of ints”? For example, to indicate that some function can accept a list of strings, use the list[str] type (Python 3.9 and later): def greet_all(names: list[str]) incompatible types The list type is an example of something called a generic type: it can accept one or more type parameters. In this case, we parameterized list by writing list[str]. This lets mypy know perhaps a little too rigid. After all, there’s no reason why this function must accept specifically a list – it would run just fine if you were to pass in a tuple, a set, or any other custom iterable. You0 码力 | 234 页 | 902.89 KB | 1 年前3
Mypy 1.10.0+dev DocumentationConfiguring and running mypy Running mypy and managing imports Specifying code to be checked Reading a list of files from a file Mapping file paths to modules How mypy handles imports Missing imports How imports application Extending mypy using plugins Configuring mypy to use plugins High-level overview Current list of plugin hooks Useful tools Automatic stub generation (stubgen) Specifying what to stub Specifying [type-var] Check uses of various operators [operator] Check indexing operations [index] Check list items [list-item] Check dict items [dict-item] Check TypedDict items [typeddict-item] Check TypedDict Keys0 码力 | 318 页 | 270.84 KB | 1 年前3
Mypy 1.8.0 DocumentationConfiguring and running mypy Running mypy and managing imports Specifying code to be checked Reading a list of files from a file Mapping file paths to modules How mypy handles imports Missing imports How imports application Extending mypy using plugins Configuring mypy to use plugins High-level overview Current list of plugin hooks Useful tools Automatic stub generation (stubgen) Specifying what to stub Specifying [type-var] Check uses of various operators [operator] Check indexing operations [index] Check list items [list-item] Check dict items [dict-item] Check TypedDict items [typeddict-item] Check TypedDict Keys0 码力 | 318 页 | 271.55 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













