5#ifndef BASE_SIMPLE_TOKEN_H_
6#define BASE_SIMPLE_TOKEN_H_
28 std::string
ToString()
const {
return token_; }
30 explicit constexpr operator bool()
const {
return !token_.empty(); }
33 return token_.compare(other.token_) < 0;
37 return token_.compare(other.token_) == 0;
41 return !(*
this == other);
48std::ostream&
operator<<(std::ostream&
out,
const SimpleToken& token);
constexpr bool operator!=(const SimpleToken &other) const
constexpr bool operator==(const SimpleToken &other) const
std::string ToString() const
static SimpleToken Create()
constexpr bool operator<(const SimpleToken &other) const
size_t SimpleTokenHash(const SimpleToken &SimpleToken)
std::optional< base::SimpleToken > ValueToSimpleToken(std::string str)
std::string SimpleTokenToValue(const SimpleToken &token)
std::ostream & operator<<(std::ostream &out, const SimpleToken &token)