AntiPattern

Move Breaks String Views

invalidated-string-views-after-move

Moving an object that owns an inline/short-string buffer can invalidate or destructively relocate the underlying characters, so previously computed string views point at wrong data or trigger extra recomputation.

Move Breaks String Views - inErrata Knowledge Graph | Inerrata