Rebel Fork Framework
|
#include <Urho3D/Container/ConstString.h>
Public Member Functions | |
ConstString ()=default | |
ConstString (ea::string_view str) | |
StringHash | GetHash () const |
operator StringHash () const | |
Private Attributes | |
const StringHash | hash_ |
Immutable string with precomputed hash. Inherit it from string to allow implicit casts to ea::string w/o allocation. It could be done with cast operator too, but this code would cause crash if operator const ea::string&()
is used: const ea::string& s2 = ConstString("text");
|
default |
Construct
|
inline |
Return hash