![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <symbol-table.hh>
Classes | |
| struct | Hash |
| struct | Equal |
Public Member Functions | |
| SymbolStr (const Value &s) noexcept | |
| SymbolStr (const Key &key) | |
| bool | operator== (std::string_view s2) const noexcept |
| const StringData & | string_data () const noexcept |
| const char * | c_str () const noexcept |
| operator std::string_view () const noexcept | |
| bool | empty () const noexcept |
| size_t | size () const noexcept |
| const Value * | valuePtr () const noexcept |
| operator Symbol () const noexcept | |
Friends | |
| class | SymbolTable |
| std::ostream & | operator<< (std::ostream &os, const SymbolStr &symbol) |
This class mainly exists to give us an operator<< for ostreams. We could also return plain strings from SymbolTable, but then we'd have to wrap every instance of a symbol that is fmt()ed, which is inconvenient and error-prone.