How to get the number of items in a static.map #615
-
I use the 'get_size()' but got this error: "the static.map has no member 'get_size()'".
|
Beta Was this translation helpful? Give feedback.
Answered by
sleeepyjack
Oct 9, 2024
Replies: 1 comment 1 reply
-
Yes. We renamed |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Gibyeng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. We renamed
get_size()
tosize()
a while ago to adhere to the stdlib naming convention. It will return the number of currently occupied slots/items in the map.