Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
quietbritishjim
on June 4, 2023
|
parent
|
context
|
favorite
| on:
A not-so-quick introduction to the C++ allocator m...
std::deque has O(1) access by index so it's fine for random access (although it has some extra indirection so it's still slower than vector)
scatters
on June 5, 2023
|
next
[–]
It's O(1), for high values of 1.
sakras
on June 4, 2023
|
prev
[–]
Wow I was literally reading the docs last night and didn’t notice operator[]! Good to know
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: