-
And why any is SBO friendly? |
Beta Was this translation helpful? Give feedback.
Answered by
skypjack
Apr 23, 2022
Replies: 1 comment
-
SBO stands for small buffer optimization. That is, the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fililili
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SBO stands for small buffer optimization. That is, the
any
class knows whether it has to allocate memory for your object or if it can in-place construct it into an internal buffer that is used for housekeeping otherwise. Nothing special. Just a common technique in the C++ land.