util/StringView: remove redundant template parameters
This commit is contained in:
parent
be5b726c0a
commit
cdf92c6300
@ -38,17 +38,17 @@ struct StringView : ConstBuffer<char> {
|
||||
StringView() = default;
|
||||
|
||||
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
|
||||
:ConstBuffer<char>(_begin, _end - _begin) {}
|
||||
:ConstBuffer(_begin, _end - _begin) {}
|
||||
|
||||
StringView(pointer_type _data) noexcept
|
||||
:ConstBuffer<char>(_data,
|
||||
:ConstBuffer(_data,
|
||||
_data != nullptr ? strlen(_data) : 0) {}
|
||||
|
||||
constexpr StringView(std::nullptr_t n) noexcept
|
||||
:ConstBuffer<char>(n) {}
|
||||
:ConstBuffer(n) {}
|
||||
|
||||
static constexpr StringView Empty() noexcept {
|
||||
return StringView("", size_t(0));
|
||||
|
Loading…
Reference in New Issue
Block a user