|
Yume
|
Atoms represent strings in a string pool.
More...
#include <atom.hpp>
Public Member Functions | |
| constexpr | Atom ()=delete |
| constexpr | Atom (std::string_view str) |
| auto constexpr | operator<=> (const Atom &other) const noexcept=default |
Static Public Member Functions | |
| static auto | make_atom (std::string_view value) noexcept -> Atom |
Atoms represent strings in a string pool.
This means two atoms created with the same string value will contain identical pointers to that string. Thus, comparing Atoms is extremely cheap, as it only consists of a pointer equality check.
|
constexprdelete |
|
inlineexplicitconstexpr |
|
inlinestaticnoexcept |
Definition at line 23 of file atom.hpp.
Referenced by yume::make_atom().
|
constexprdefaultnoexcept |