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::operator[] with Example in C++ STL
  3. array::front() function with Example in C++ STL
  4. array::back() function with Example in C++ STL
  5. array::begin() and array::end() functions with Example in C++ STL
  6. array::rbegin() and array::rend() functions with Example in C++ STL
  7. array::fill() function with Example in C++ STL
  8. array::size() function with Example in C++ STL
  9. array::max_size() function with Example in C++ STL
  10. array::empty() in C++ STL with Example
  11. array::get function template with Example in C++ STL
  12. Sort an array in ascending order using sort() function in C++ STL
  13. Sort an array in descending order using sort() function in C++ STL
  14. C++ program to find the integers which come odd number of times in an array
  15. C++ STL sort function to sort an array or vector
  16. How to get the first and element last elements of an array in C++ STL?

String

  1. std::string in C++ STL (Standard Template Library)
  2. String Assignment | C++ STL
  3. string::assign() Function with Example in C++ STL
  4. string::length() Function with Example in C++ STL
  5. Convert numeric to string using string::to_string() in C++ STL
  6. Appending text to the string using string::append() function in C++ STL
  7. Create substring by given start, end index of a string | C ++ STL
  8. Compare two string objects in C++ | C++ STL
  9. How to convert a character to string in C++ STL?
  10. How to convert an integer to string in C++ STL?
  11. Accessing character elements from a string in C++ STL
  12. Comparing two string using comparison operators in C++ STL
  13. Concatenating two string using + (plus) operator in C++ STL
  14. Convert hex string to integer using stoi() function in C++ STL
  15. Convert octal string to integer using stoi() function in C++ STL
  16. Convert binary string to integer using stoi() function in 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

Stack

  1. Stack in C++ STL (Standard Template Library)
  2. stack::push() function in C++ STL
  3. stack::pop() function in C++ STL
  4. stack::top() function in C++ STL
  5. stack::size() function in C++ STL
  6. stack::empty() function in C++ STL
  7. Stack program using C++ Standard Template Library (STL)

Set

  1. Set in C++ STL (Standard Template Library)
  2. set::size() function in C++ STL
  3. set::insert() function in C++ STL
  4. set::erase() function in C++ STL
  5. set::empty() function in C++ STL
  6. set::emplace() function in C++ STL
  7. set::clear() function in C++ STL
  8. set::lower_bound() function in C++ STL
  9. set::upper_bound() function in C++ STL
  10. set::find() function in 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()





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.