https://github.com/webcpu/stl
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/webcpu/stl
- Owner: webcpu
- Created: 2022-07-13T11:27:45.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-09T21:01:27.000Z (6 months ago)
- Last Synced: 2025-01-12T19:35:52.038Z (4 months ago)
- Language: Swift
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# STL
The Standard Template Library (STL) is a set of Swift classes to provide common programming data structures and functions such as lists, stacks, arrays, etc.
## Classes
### class Deque
Deque (usually pronounced like “deck”) is an irregular acronym of double-ended queue. Double-ended queues are sequence containers with dynamic sizes that can be expanded or contracted on both ends (either its front or its back).### class ForwardList
ForwardLists are sequence containers that allow constant time insert and erase operations anywhere within the sequence.### class List
Lists are sequence containers that allow constant time insert and erase operations anywhere within the sequence, and iteration in both directions.### class OrderedMap
OrderedMaps are associative containers that store elements formed by a combination of a key value and a mapped value, following a specific order.### class OrderedMultiMap
OrderedMultiMaps are associative containers that store elements formed by a combination of a key value and a mapped value, following a specific order, and where multiple elements can have equivalent keys.### class OrderedSet
OrderedSets are containers that store unique elements following a specific order.### class PriorityQueue
PriorityQueues are a type of container adaptors, specifically designed such that its first element is always the greatest of the elements it contains, according to some strict weak ordering criterion.### class Queue
Queues are a type of container adaptor, specifically designed to operate in a FIFO context (first-in first-out), where elements are inserted into one end of the container and extracted from the other.### class Stack
Stacks are a type of container adaptor, specifically designed to operate in a LIFO context (last-in first-out), where elements are inserted and extracted only from one end of the container.