Add move to UnsignedCharTrait
This commit is contained in:
parent
e43a142686
commit
da4625f4b7
1 changed files with 3 additions and 0 deletions
|
@ -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>;
|
||||||
|
|
Loading…
Reference in a new issue