Util/StringView: add struct TStringView

This commit is contained in:
Max Kellermann 2017-09-12 19:12:02 +02:00
parent db23c2f27b
commit 9e7df54ccd

View File

@ -126,6 +126,22 @@ struct WStringView : BasicStringView<wchar_t> {
:BasicStringView(src) {}
};
struct TStringView : WStringView {
using WStringView::WStringView;
constexpr TStringView(WStringView src) noexcept
:WStringView(src) {}
};
#else
struct TStringView : StringView {
using StringView::StringView;
constexpr TStringView(StringView src) noexcept
:StringView(src) {}
};
#endif
#endif