Working with Standard Library Containers and Iterators in C++
The Standard C++ library offers a host of powerful, template-based components that implements data structure for common containers and iterators. It is vital for C++ programmers to know and use them...
View ArticleAn Introduction to Ordered Associative Containers in C++
Associative containers are those that provide direct access to its elements for storage and retrieval purposes. The elements are accessed via keys, also known as search keys. There are four ordered and...
View ArticleAn Introduction to Container Adapters in C++
Overview The C++ Standard Library offers a host of implementations on common data structures and algorithms. The collection of container classes provides a set of data structure to store a list of...
View ArticleAn Introduction to Object Serialization in C++
Overview Serialization is a mechanism to convert an object into a sequence of bytes so that it can be stored in memory. The byte stream, once created, also can be streamed across a communication link...
View ArticleHow C++ Implements Late Binding
Function Call Binding Binding a function necessarily means connecting the point of function invocation to its body. This binding can happen two ways: statically or dynamically. When the binding is done...
View ArticleHow to Operate on Strings in C++
Overview A string, at its core, simply means an array or characters terminated by a binary zero or null character as the final element in the array. The C-style of dealing with strings means every bit...
View ArticleUnderstanding the Utility of Iostreams in C++
The iostream classes are the first library classes we encounter when we begin with C++. The primary services that we deal with these classes is solving general I/O problems. After all, this is what the...
View ArticleWhat Is Runtime Type Identification (RTTI) in C++?
Overview RTTI stands for Runtime type identification. It is a mechanism to find the type of an object dynamically from an available pointer or reference to the base type. This is particularly useful in...
View ArticleUnderstanding the Intricacies of Multiple Inheritance in C++
Introduction Multiple inheritance basically means a class derived from more than one base classes. This is an efficient class design to reuse the properties of multiple classes into a single composite...
View ArticleAn Introduction to Sequence Containers in C++
In C++, sequence containers are a group of template classes used to store data elements. Because they are template classes, they can be used to store any data elements, including custom classes. The...
View Article