Add move to UnsignedCharTrait

This commit is contained in:
sha512sum 2024-09-15 22:06:07 +00:00
parent e43a142686
commit da4625f4b7

View file

@ -23,6 +23,9 @@ struct UnsignedCharTrait {
std::ranges::copy_n(c2, static_cast<std::iter_difference_t<unsigned char>>(n), c1); std::ranges::copy_n(c2, static_cast<std::iter_difference_t<unsigned char>>(n), c1);
return c1; return c1;
} }
static constexpr auto move(char_type* c1, const char_type* c2, std::size_t n) -> char_type* {
return copy(c1, c2, n);
}
}; };
using UnsignedStringView = std::basic_string_view<unsigned char, UnsignedCharTrait>; using UnsignedStringView = std::basic_string_view<unsigned char, UnsignedCharTrait>;