Commit cdf92c63 authored by Max Kellermann's avatar Max Kellermann

util/StringView: remove redundant template parameters

parent be5b726c
...@@ -38,17 +38,17 @@ struct StringView : ConstBuffer<char> { ...@@ -38,17 +38,17 @@ struct StringView : ConstBuffer<char> {
StringView() = default; StringView() = default;
constexpr StringView(pointer_type _data, size_type _size) noexcept constexpr StringView(pointer_type _data, size_type _size) noexcept
:ConstBuffer<char>(_data, _size) {} :ConstBuffer(_data, _size) {}
constexpr StringView(pointer_type _begin, pointer_type _end) noexcept constexpr StringView(pointer_type _begin, pointer_type _end) noexcept
:ConstBuffer<char>(_begin, _end - _begin) {} :ConstBuffer(_begin, _end - _begin) {}
StringView(pointer_type _data) noexcept StringView(pointer_type _data) noexcept
:ConstBuffer<char>(_data, :ConstBuffer(_data,
_data != nullptr ? strlen(_data) : 0) {} _data != nullptr ? strlen(_data) : 0) {}
constexpr StringView(std::nullptr_t n) noexcept constexpr StringView(std::nullptr_t n) noexcept
:ConstBuffer<char>(n) {} :ConstBuffer(n) {}
static constexpr StringView Empty() noexcept { static constexpr StringView Empty() noexcept {
return StringView("", size_t(0)); return StringView("", size_t(0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment