STL C++
STL (Standard Template Library) and Basic Data Structure in C + +
STL or Standard Template Library in C + + is a ready-made toolkit in the C + + language consisting of frequently used data structures and algorithms.
By this article, it contains STL and basic data structures that in C + + of 6 types are Array, Vector, Queue, Priority Queue, Pair and Tuple.
Each type has a different significance, and is used to solve different problems.
- Array: Fixed-size data structures store the same type of data in memory. Access data very quickly through Index, but can't change size later.
- Vector: Dynamic-size automatic modifiable size array, can increase or decrease data as needed, highly flexible, and is the most popular STL.
- Queue: FIFO Data Structure (First-In, First-Out) Data that comes in first to get out first, like a real-life shopping queue.
- Priority Queue: Priority Queue The most valuable (or least as set) information is placed on the front end and is always put out to use first.
- Pair: A structure used for matching 2 data together (with both data not necessarily of the same type). It is commonly used to store $(x, y) $coordinates or key pairs with value (Key-Value).
- Tuple: A structure similar to Pair, but more powerful in that it can bind together 3 or more data (or any number of them) and different types. It allows multiple values to be returned from the function simultaneously.
Written by
Mr. Vajiraswin Mwongtplanon, a student of the College Rose Garden School, Thonburi (through Olympic Training, Academic Camp, 2, Computer Major, 2026, at the Academic Olympic Center, University of Agriculture)
According to
/
Prof. Dr. Wacheret Suvarnak (Department of Computer Science, School of Science, University of Agriculture) (Camp 2 Academic Olympic Instructor, Computer Major, 2026 Academic Year at the Academic Olympic Center, University of Agriculture)
Mr. Schwin Sumit, a student of the Srinakarin University Demonstration School, Interlocking Friendly (High School) (through the Olympic Training Academic Camp 2, Computer Major, 2026 School Year at the Academic Olympic Center, University of Agriculture)







































