1. STL
STL (Standard Template Library) is an important part of the C ++ language standard. STL takes the form of template classes and template functionsProgramProvides various data structures andAlgorithmIf programmers can make full use of STLCodeSpace, execution time, and coding efficiency are greatly improved.
STL
Note: memory management is always the red-light area of the C/C ++ program. There are two focuses on memory management. One is the correct use of memory. For example, new and delete in C ++ should appear in pairs and use raiI to manage memory resources, auto_ptr and other aspects, many C/C ++ books use the introduction of skills. The other is the implementation of memory management, such as the slab distributor of the Linux kernel, Allocator implementation in
I recently used 3D files in STL format to learn how to add them to my favorites.
From: http://www.cnblogs.com/ourshell/archive/2010/05/03/1726821.html
STL can only be used to indicate closed faces or bodies. STL files can be in either the plaintext format or binary format. Its file format is very simple
Plaintext:Solid nameFacet normal Ni NJ NKOuter LoopVertex v1
The following contents are reproduced: HTTP://STLCHINA.HUHOO.NET/BIN/VIEW.PL/MAIN/STLDETAILHASHMAPDetailed explanation of STL Hash_map series
Detailed explanation of STL Hash_map series
0 Why do I need hash_map
1 data structure: hash_map principle
2 Hash_map Use
2.1 A simple example
The hash function of 2.2 hash_map
Comparison function of 2.3 ha
I. Overview of STL Container
C + + STL (Standard Template Library Standard Template gallery) is a universal class template and algorithm collection, it provides us with some standard data structure implementation such as queues (queue), lists (linked list), and stacks (stack) and so on. When we use C + + programming, we often use the STL container, which is very
Original:STL "source code" analysis-Key Knowledge summarySTL is one of the important components of C + +, the university saw the "STL Source Code Analysis" This book, these days reviewed a bit, summed up the following LZ think more important knowledge points, content a little bit more:)1. STL OverviewSTL provides six components that can be combined with each other:
Container (Containers): A variety
STL hash_map Series
STL hash_map Series
0 Why hash_map
1. Data Structure: hash_map Principle
2 Use hash_map
2.1 A simple instance
2.2 Hash Functions of hash_map
2.3 comparison functions of hash_map
2.4 hash_map Function
3 related hash containers
4 others
4.1 what is the difference between hash_map and map?
4.2 When do I need hash_map and map?
Functors uses the function object name in the C ++ standard ). Imitation functions are mainly used in STL algorithms. Although function pointers can also be used as algorithm parameters, function pointers cannot meet STL's abstract requirements, and cannot meet the requirements of software blocks-function pointers cannot be used with other STL components, resulti
STL (standard template library STL) is a general term for a series of software developed by the HP lab. It was developed by Alexander Stepanov, Meng Lee, and David R musser while working at the HP lab. Although it mainly appears in C ++, this technology has existed for a long time before it was introduced into C ++. STL
Http://blog.csdn.net/sunlylorn/article/details/6788768
GDB user-defined commands are very useful. You can use user-defined commands to directly operate the data in the container and conveniently view the data in the STL container.
This link dbinit_stl_views is a custom command written by Dan C Marinescu to view STL containers (you can modify it if it is not suitable for your
Abstract: This article lists several basic STL map and STL set questions. By answering these questions, we explain the data structure in the STL associated container, finally, we raised the question about the built-in balanced binary tree library functions and map and set selection in Unix/Linux, and analyzed the advantages of MAP and set. For those who want to l
Directory
Problem
SGI Version Space Configurator-std::alloc
First-level Space Configurator
Second-level Space Configurator
Refill, Chunkalloc functions
Finally, the Simple_alloc interface that the Configurator encapsulates
Problem
In our daily writing C + + programs, we often use our STL standard library to help us solve the problem, in which we use the most estimate is its vector, list container, they bring the convenience of
C ++ STL study Note 1: General description
This learning note mainly describes the basic knowledge and system framework of C ++ STL. It is mainly suitable for beginners and has some reference value for understanding STL. The notes are illustrated in images and texts, I hope to help you better understand STL.
Main threa
SGI designed a two-tier Configurator, the first-level configurator directly uses malloc () and free (), and the second-level Configurator uses different strategies depending on the situation: when the configuration chunk exceeds 128bytes, the first-level configurator is called when it is "large enough", and when the configuration area is less than 128bytes, As "too small", in order to reduce the additional burden, the use of complex memory pool collation, and no longer recourse to the first leve
STL only specifies the interface and complexity, and does not require specific implementation. The set is mostly implemented by the red/black tree, but STL provides a so-called hash_set in addition to the standard specification, which is implemented by hash table. Hash_set interfaces and hash_table are provided. Therefore, almost all hash_set operations directly call the hash_table function.
In addition to
suitability of this software to any * purpose.
It is provided ' as is ' without express or implied warranty.
*/* Note:this is a internal header file, included by the other STL headers.
* You should not attempt to use it directly. * * #ifndef __sgi_stl_internal_stack_h #define __SGI_STL_INTERNAL_STACK_H __stl_begin_namespace// If the compiler cannot derive the default parameter type that is used later ba
without fee, * provided that above Copyri Ght notice appear in all copies and * so both that the copyright notice and this permission notice appear * in supporting Documentation. Hewlett-Packard Company makes no * representations about the suitability of this software to any * purpose.
It is provided ' as is ' without express or implied warranty.
* * Copyright (c) 1996,1997 * Silicon Graphics Computer Systems, Inc. * Permission to use, copy, mod
STL is built on generalization. The array is generalized to a container, and the type of the contained object is parameterized. function generalization is an algorithm that parameterize the type of iterator used. Pointer generalization is an iterator that parameterize the type of object being pointed to. Six components in the STL: containers, Algorithms, iterators, Configurator, adapters, functor.These six
Standard STL sequence Container: Vector, String, deque, and list.Standard STL Associative containers: Set, Multiset, map, and Multimap.Non-standard associative containers hash_set, Hase_multiset, Hash_map, and Hash_multimap.(1) Vector containerVector data is arranged and manipulated in a very similar way to array. The only difference between the two is the flexibility of the use of space. An array is a stat
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.