Home

C++ STL (Standard Template Library)

This page contains articles, tutorials, function, programs/examples in C++ STL (Standard Template Library).

Latest Articles, Tutorials, Examples on C++ STL

Basics

  1. Introduction to C++ STL (Standard Template Library)
  2. <bits/stdc++.h> as header file in C++

Arrays

  1. Array in C++ Standard Template Library (STL) with its common functions
  2. array::fill() in C++ Standard Template Library (STL)
  3. Sort an array in ascending order using sort() function in C++ STL
  4. Sort an array in descending order using sort() function in C++ STL
  5. C++ program to find the integers which come odd number of times in an array
  6. array::size() in C++ STL with Example
  7. array::empty() in C++ STL with Example
  8. C++ STL sort function to sort an array or vector

String

  1. String Assignment | C++ STL
  2. string::assign() function with Example | C++ STL
  3. Convert numeric to string using string::to_string() in C++ STL
  4. Appending text to the string using string::append() function in C++ STL
  5. Create substring by given start, end index of a string | C ++ STL
  6. Compare two string objects in C++ | C++ STL

List

  1. List functions in C++ STL (Standard Template Library)
  2. Assign the elements to the list (different methods) - Example of list::assign() | C++ STL
  3. std::list::empty() function in C++ STL
  4. Iterate a list (Example of list::begin() and list::end() functions) | C++ STL
  5. Iterate a list in reverse order (Example of list::rbegin() and list::rend() functions) | C++ STL
  6. Input and add elements to a list | C++ STL
  7. Get the first and last element of the list | C++ STL
  8. Insert the element at beginning and end of the list | C++ STL
  9. Remove all occurrences of an element and remove set of some specific from the list | C++ STL
  10. Examples of list.remove_if() function | C++ STL
  11. Remove all consecutive duplicate elements from the list | C++ STL
  12. Merge two lists using merge() function | C++ STL
  13. Creating a list by assigning the all elements of another list | C++ STL
  14. Assign a list with array elements | C++ STL

Queue

  1. Queue in C++ Standard Template Library (STL)
  2. Print all elements of a queue in C++ STL
  3. queue::front() and queue::back() in C++ STL
  4. queue::push() and queue::pop() in C++ STL
  5. queue::empty() and queue::size() in C++ STL
  6. Check if a queue is empty or not using queue::size() function

Vector

  1. Vectors in C++ Standard Template Library (STL)
  2. Declare, Initialize and Access a Vector | C++ STL
  3. vector::front(), vector::back(), vector::at() and vector::data() functions with examples | C++ STL
  4. Check vector is empty or not | C++ STL
  5. Copy a vector to another in C++
  6. Copy a vector to another by using vector.assign() function in C++
  7. Erase elements in C++ Vector using vector::erase()
  8. Find largest and smallest elements in a vector | C++ STL
  9. Insert elements in vector using vector::insert() | C++ STL
  10. C++ STL sort function to sort an array or vector

Map

  1. Map in C++ | C++ STL
  2. map::size() function in C++ STL with Example
  3. map::max_size() function with Example in C++ STL
  4. map::empty() function with Example in C++ STL
  5. Insert elements in map | C++ STL
  6. Delete elements from a Map | C++ STL
  7. C++ program to print all the Repeated Numbers with Frequency in an Array
  8. C++ program to print all the Non-repeated Numbers in an Array

Heap

  1. Create Heap by using make_heap() | C++ STL

MISC.

  1. Binary Search in C++ using Standard Template Library (STL) function binary_search()
  2. Stack program using C++ Standard Template Library (STL)




Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.