1#ifndef art__paperback__types_hxx_
2#define art__paperback__types_hxx_
6#include <initializer_list>
22#ifndef GENERATING_DOCUMENTATION
23 using std::initializer_list;
25 using std::invalid_argument;
26 using std::logic_error;
27 using std::runtime_error;
39 using std::unique_ptr;
40 using std::shared_ptr;
41 using std::make_shared;
42 using std::make_unique;
45 using std::holds_alternative;
63 using std::stringstream;
96 : index{index}, generation{generation}
109 return index == other.index && generation == other.generation;
119 return !(*
this == other);
127 if (index < other.index) {
131 if (generation < other.generation) {
Primary paperback namespace.
Definition array.cxx:6
uint16_t Generation
Generation type.
Definition types.hxx:76
uint32_t Index
Index type.
Definition types.hxx:72
bool operator==(Identity const &other) const
Compare this identity with another.
Definition types.hxx:107
Identity()
Constructor.
Definition types.hxx:87
Identity(Index index, Generation generation)
Constructor.
Definition types.hxx:95
bool operator!=(Identity const &other) const
Compare this identity with another.
Definition types.hxx:117
bool operator<(Identity const &other) const
Compare this identity with another.
Definition types.hxx:125