- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Library in C++ STL?
45 Lectures 4.5 hours
66 Lectures 5.5 hours
The C++ STL (Standard Template Library) is a powerful set of C++ template classes to provide general-purpose classes and functions with templates that implement many popular and commonly used algorithms and data structures like vectors, lists, queues, and stacks.
It is a library of container classes, algorithms, and iterators. It is a generalized library and so, its components are parameterized. Working knowledge of template classes is a prerequisite for working with STL.
Templates are a feature of the C++ programming language that allows functions and classes to operate with generic types. This allows a function or class to work on many different data types without being rewritten for each one
C++ Standard Template Library has following three well-structured components −
Containers are used to manage collections of objects of a certain kind. There are several different types of containers like deque, list, vector, map, etc.
Sequence Containers - These containers implement data structures which can be accessed in a sequential manner.
Container Adaptors - They provide a different interface for sequential containers.
Associative Containers - They implement sorted data structures that can be quickly searched (O(log n) complexity).
Unordered Associative Containers - These containers implement unordered data structures that can be quickly searched
Algorithms act on containers. They provide the means by which you will perform initialization, sorting, searching, and transforming the contents of containers.
- Important STL Algorithms
- Useful Array algorithms
- Partition Operations
Iterators are used to step through the elements of collections of objects. These collections may be containers or subsets of containers.
- The C++ Standard Template Library (STL)
- Sort in C++ Standard Template Library (STL)
- Multiset in C++ Standard Template Library (STL)
- Pair in C++ Standard Template Library (STL)
- Priority Queue in C++ Standard Template Library (STL)
- Binary Search in C++ Standard Template Library (STL)
- What's the difference between "STL" and "C++ Standard Library"?
- Chrono library in C++
- FuzzyWuzzy Python library
- Python Holidays library
- Gaussian Library Arduino
- Serial Filtering Library in Arduino
- stable_sort() in C++ STL
- Containers in C++ STL
- count_if() in C++ STL