c++ stl code example

Example 1: STL c++

Good Website to learn:
https://en.cppreference.com/w/cpp/container
https://www.cplusplus.com/reference/stl/
https://www.geeksforgeeks.org/the-c-standard-template-library-stl/

Example 2: tree in c++ stl

// C++ STL library does not provide any non linear data structure like
// Trees and Graphs
// it only provides linear data structures like 
// vector , list , map , stack , queue etc..
// https://www.geeksforgeeks.org/binary-tree-data-structure/
// https://www.geeksforgeeks.org/graph-implementation-using-stl-for-competitive-programming-set-1-dfs-of-unweighted-and-undirected/

Example 3: stl import c++

#include <bits/stdc++.h>

Tags:

Java Example