Namani Karthik


The C++ Standard Template Library (STL) | C++ STL Tutorial

Welcome to this course on C++ Tutorial for Beginners. In this video we will see How to use Standard Template Library (STL) in C++.
STL is the C++ based implementations of general purpose data structures and algorithms. STL had three basic components: Containers, Algorithms, Iterators.
The STL provides several basic kinds of containers
vector : one-dimensional array
list : double linked list
deque : double-ended queue
queue : queue
stack : stack
set : set
map : associative array

C++ is general purpose, compiled, object-oriented programming language and its concepts served as the basis for several other languages such as Java, Python, Ruby, Perl etc.

The goal of this course is to provide you with a working knowledge of C++. We’ll start with the basics, including syntax, operators, loops, and functions. This Course will explain you how to use data structures and create your own Functions. This Course will show you the details of the powerful object and template systems so you can create useful classes and objects.


#c++ #programming

What is GEEK

Buddha Community

The C++ Standard Template Library (STL) | C++ STL Tutorial
Sival Alethea

Sival Alethea


C++ Tutorial for Beginners - Full Course. DO NOT MISS!!!

This course will give you a full introduction into all of the core concepts in C++.
⭐️ Contents ⭐
⌨️ (0:00:00) Introduction
⌨️ (0:01:38) Windows Installation
⌨️ (0:04:54) Mac Installation
⌨️ (0:08:44) Setup & Hello World
⌨️ (0:12:29) Drawing a Shape
⌨️ (0:19:55) Variables
⌨️ (0:31:43) Data Types
⌨️ (0:39:15) Working With Strings
⌨️ (0:49:00) Working With Numbers
⌨️ (0:59:41) Getting User Input
⌨️ (1:05:32) Building a Calculator
⌨️ (1:09:28) Building a Mad Libs
⌨️ (1:13:45) Arrays
⌨️ (1:20:03) Functions
⌨️ (1:29:47) Return Statement
⌨️ (1:35:22) If Statements
⌨️ (1:47:15) If Statements (con’t)
⌨️ (1:55:58) Building a Better Calculator
⌨️ (2:02:20) Switch Statements
⌨️ (2:10:47) While Loops
⌨️ (2:18:53) Building a Guessing Game
⌨️ (2:29:18) For Loops
⌨️ (2:38:32) Exponent Function
⌨️ (2:45:21) 2d Arrays & Nested Loops
⌨️ (2:54:55) Comments
⌨️ (2:59:11) Pointers
⌨️ (3:13:26) Classes & Objects
⌨️ (3:25:40) Constructor Functions
⌨️ (3:34:41) Object Functions
⌨️ (3:41:43) Getters & Setters
⌨️ (3:54:04) Inheritance

Course developed by Mike Dane. Check out his YouTube channel for more great programming
📺 The video in this post was made by
The origin of the article:
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#c++ #c++ tutorial #c++ tutorial for beginners #c++ tutorial for beginners - full course #core concepts in c++.

Ari  Bogisich

Ari Bogisich


Standard Template Library (STL) in C++ | Vectors

The Standard Template Library (STL) in C++ is nothing but a set of template classes which provides us with the widely used data structures such as lists, stacks, maps, etc. along with iterators, functions and algorithms in order to play around with the data elements.

A. Main Components of STL


Containers are nothing but holder objects which stores other objects i.e. it’s elements. A container does the memory management for its elements and provides us with member functions or iterators in order to interact with it’s data elements.


Algorithms, defined under the header , are nothing but a collection of several functions which are designed in order to used on any sequence of elements that can be accessed using iterators or pointers. One thing to note about algorithms is that they do not change the way a data structure is organised in any way. They merely deal with the elements within the structure.


Iterators are something which is used to point at the memory addresses of STL containers’ elements. Thus providing a means to access the data stored within the container. They can be simply thought of as pointers. More about them can be read here.

Now with that being said we are good to go ahead and have a look at our very first container Vector.

B. Vectors in STL

We all know about the commonly used data structure, arrays. A vector can be simply thought of as an array with the added functionality that it’s size can vary over time. Thus we can say that vectors are sequence containers representing arrays that can change it’s size dynamically.

Just like an array, a vector too uses contiguous memory allocation for its elements thus we can make use of offsets in order to access the elements of a vector. Internally vectors make use of dynamically allocated arrays. This array may need to be reallocated in order to grow in size thus resulting in a costly operation of reallocation and copying the elements. Thus vectors do not reallocate each time instead they have an extra amount of space which is greater than their actual size (current size of the vector) and re-allocations usually happen at logarithmic intervals. Thus, vectors occupy more space when compared to an array in exchange of dynamic nature and efficient memory management.

C. Let’s have a look at the syntax

We need to import the header  so that we can make use of vectors

#include <vector>

Now, in order to declare a vector we use the following syntax

vector vector_name;

Eg : vector v;

This declares a vector with 0 elements in it.

D. Different ways of vector declaration and initialisation

#include <iostream>
#include <vector>

using namespace std;
int main()
 vector <int> myVec;     // simple declaration
 myVec.assign(10, 33);   // 10 ints with a value of 33

 vector <int> v{1,2,3};  // initialise on the go
 vector <int> v1(3);     // 3 ints with value of 0
 vector <int> v2(3,7);   // 3 ints with value of 7
 return 0;

#vector #standard-template-library #cplusplus #stl #programming-c

Ari  Bogisich

Ari Bogisich


Standard Template Library (STL) in C++ | Lists

The **Standard Template Library (STL) **is a very useful set of template classes containing various containers. One among these containers is Lists. Today we’ll be having a look at Lists in STL. But before we proceed further I’d like to say that if this is your first time learning STL then I’d recommend you have a look at this article before beginning with this one.

With that being said let’s dive further into the topic by knowing what are lists in STL ?

A. Lists in STL

Lists are a type of sequence containers which provides us with constant insertion and deletion time anywhere within the sequence given that we have obtained the corresponding iterator to the same. It also allows us traversal in both the directions.

List containers are implemented as doubly-linked lists. The memory management is done internally by maintaining a link to the previous as well as the next element in the sequence with respect to each element. A significant drawback of lists being that we don’t have direct access to the elements since it uses non contiguous memory allocation for each element in the sequence. Thus in order to get to a specific element in the sequence one has to iterate through the list which takes linear time. Apart from that it also takes up a bit more extra space when compared to vectors, which it uses to keep track of the links to previous and next elements corresponding to each element in the sequence.

#standard-template-library #lists-in-cplusplus #stl #cplusplus #programming-c

Shaylee  Lemke

Shaylee Lemke


The numerical algorithms that are found in the Standard Template Library (STL)

In this article I will discuss the numerical algorithms that are found in the Standard Template Library (STL). These algorithms do not replace the math library for the types of functions found in cmath but provide a different set of algorithms for solving certain numerical processing problems.

#c #c# #c++ #programming-c

chand code


C++ Tutorial From Basic to Advance

C++ is a general-purpose, multi-paradigm programming language supports procedural, functional, object-oriented, generic ways of writing code.

#c++ #c++tutorial #c++tutorialfor #c++tutorialforbeginners #cplusplus #c++programming