V
V
Vladimir Grabko2016-06-01 19:55:02
go
Vladimir Grabko, 2016-06-01 19:55:02

How to remove first element from map?

I have a map and from time to time I check how much ram this map takes. I need to remove the oldest data from it (the first element of the map). How to do it right? (now I use range in 1 iteration. )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gizmothron, 2016-06-01
@VGrabko

delete
doesn't need any iterations, it's not an array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question