#include <more/gen/identifier.h>
This is just a simple string-like class with constant-time comparison. String manipulation is not provided by intention, as that would lead to generation of redundant unique string pointers. Use std::string
or gc_string
to create the string first, if needed.
|
|
|
Construct an invalid identifier. Ideally this ctor would create an anonymous unique identifier, but that may have lead to many redundant allocations declared and defined separately. |
|
Construct an object identified by "str".
|
|
Return a C string which is lexically equal to the string this object was constructed from.
|
|
True iff the identifier is valid.
|
|
|
|
True if the identifiers are different.
|
|
Provides an arbitrary ordering if identifiers.
|
|
Equivalent to "strcmp(c_str(), rhs.c_str()) == 0", but faster.
|
|
|
|
|