Topics Search

Understanding C++ Containers in the C++ Standard Library

Understanding C++ Containers in the C++ Standard Library
Views: 1
Containers classes are those that provide the means to hold elements and facilitates and have some sort of management and manipulation over it. When we talk about containers, the first thing that comes to mind is of Standard Template Library (STL). STL supplies quite a few sophisticated container implementations. Started as a separate library, STL heavily influenced the derivatives of container classes of the C++ standardized library in its present from. Though the standard library is a collection of many other functionalities apart from providing container classes, here we'll focus on container classes only.
Sponsored Links:

Similar posts...

 

Basic of C++ Standard Library

Basic of C++ Standard Library Icon
C++ standard library is a set of user defined types(classes), objects and functions which help to develop applications. Without standard library it is very very difficult to write a useful application. Standard library is an integrated part of the language and the language specification defines the specification for the standard library also. Standard Library is part of C++ ISO standard. C++ ISO standard also defines the performance criteria of the Standard Library. Most of the compiler developers provide the standard library along with the compiler.
 

Advanced C++ : Standard Template Library (STL)

Advanced C++ : Standard Template Library (STL) Icon
As the name suggests STL is the part of the C++ standard library which provides a rich set of template classes and template functions to make application development faster. It is a software library, a very important part of the standard library and influenced other parts of the standard library. STL library implementation has used the power of generic programming and projected the huge potential of generic programming to the programmers.
 

What is STL?

What is STL? Icon
This article provides an introductory look at the C++ Standard Template Library (STL). STL contains five kinds of components: containers, iterators, algorithms, function objects and allocators...
 

Database Programming with C/C++

Database Programming with C/C++ Icon
Creating a database application in C/C++ is a daunting task, especially for a novice programmer. Although the actually code is quite simple, it is the configuration issues such as importing right library, drivers to use, how to access them, and so forth, that make it an uphill battle. Modern high-level languages are pretty straightforward in these matters. They are quite simple and convenient with an all-in-one-place library with very few configuration troubles. One of the interesting aspects of using a high-level language is that you can almost start coding with even a little understanding of the underlying principles.
 

Introduction to the C++ Standard Template Library

Introduction to the C++ Standard Template Library Icon
The C++ language is not a simple language. In fact, many would argue it is a somewhat overcomplicated language. Nevertheless it can be used to write beautiful code. On top of that it is so widespread that example code and libraries (free ones, too) are all over the Internet.
 

STL Containers With Examples

STL Containers With Examples Icon
All container classes are part of std name space. Most of the member functions of container classes are common and have common functionality. The decision of which container to use for specif need does not generally depend on the functionality of a container but the efficiency of some of it’s members. This is specifically true for sequence containers which provide different tradeoffs in complexities to insert/delete/access it’s elements. Learning STL will be effective only when you write programs using them. So I will not go behind every member of each container but give a brief overview of major container classes with simple examples. Complete details of each class you should consult the STL reference documents.
 

Character Sequences

Character Sequences Icon
As you may already know, the C++ Standard Library implements a powerful string class, which is very useful to handle and manipulate strings of characters. However, because strings are in fact sequences of characters, we can represent them also as plain arrays of char elements.
 

Basic Input/Output

Basic Input/Output Icon
Using the standard input and output library, we will be able to interact with the user by printing messages on the screen and getting the user's input from the keyboard.
 

Understanding Pointers

Understanding Pointers Icon
This article is intended to all programming enthusiasts on all levels who do wish to understand pointers in C++ language. All code presented here is not a compiler specific and all examples will be written in plain ANSI C++. Debate about pointers can stretch for miles, and you would need to go really far to master it all. If you really want to run that far, this article gives you a clear understanding of fundamental concepts about pointers and prepares you for that journey. However, those who are new to C++ programming make sure that you are able to write and run your own C++ “hello world” program, and also it is recommended that you have a basic understanding of C++ functions and classes.
 

XML Comparer Library in C#

XML Comparer Library in C# Icon
This is a small library I have developed to help me write utilities which involve comparison of XML files. This time I decided the write the code once, make it open source and use it in future. I tried looking for any existing implementations and the one that came closest to be the final choice was the XML Diff & Patch library from Microsoft. But it failed on the very first sample of XML files I threw at it.