31 inline mapping(_In_ T x) : from(x), to(x) {}
39 inline mapping(_In_ T _from, _In_ T _to) : from(_from), to(_to) {}
48 inline bool operator==(
const mapping& other)
const {
return from == other.from && to == other.to; }
60 template <
class T,
class _Alloc = std::allocator<mapping<T>>>
61 using mapping_vector = std::vector<mapping<T>, _Alloc>;
Maps index in source string to index in destination string.
Definition mapping.hpp:17
mapping(T x)
Constructs an id mapping.
Definition mapping.hpp:31
bool operator==(const mapping &other) const
Are mappings identical?
Definition mapping.hpp:48
mapping()
Constructs a zero to zero mapping.
Definition mapping.hpp:24
bool operator!=(const mapping &other) const
Are mappings different?
Definition mapping.hpp:57
mapping(T _from, T _to)
Constructs a mapping.
Definition mapping.hpp:39