Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::Symbol Class Reference

#include <symbol-table.hh>

Public Member Functions

 operator bool () const
 
auto operator<=> (const Symbol other) const
 
bool operator== (const Symbol other) const
 

Friends

class SymbolTable
 
class std::hash< Symbol >
 

Detailed Description

Symbols have the property that they can be compared efficiently (using an equality test), because the symbol table stores only one copy of each string.

Friends And Related Symbol Documentation

◆ SymbolTable

friend class SymbolTable
friend

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.

Symbols have the property that they can be compared efficiently (using an equality test), because the symbol table stores only one copy of each string.


The documentation for this class was generated from the following file: