StringName

An optimized string type for unique names.

Description

StringNames are immutable strings designed for general-purpose representation of unique names. StringName ensures that only one instance of a given name exists (so two StringNames with the same value are the same object). Comparing them is much faster than with regular Strings, because only the pointers are compared, not the whole strings.

Constructor Descriptions

Constructs an empty StringName.


Constructs a StringName as a copy of the given StringName.


Creates a new StringName from the given String.

Operator Descriptions

  • bool operator != ( )




  • bool operator == ( )