Commit 1ac525ba authored by Marco Bubke's avatar Marco Bubke

Utils: Add _sv literal for SmallStringView

You can now write "text"_sv to get SmallStringView

Change-Id: I4a5172c97b9bfb283360037ebb934c589ad5a2d8
Reviewed-by: Tim Jenssen's avatarTim Jenssen <>
parent d417292b
......@@ -193,3 +193,11 @@ int reverseCompare(const SmallStringView& first, const SmallStringView& second)
} // namespace Utils
#ifdef __cpp_user_defined_literals
constexpr Utils::SmallStringView operator""_sv(const char *const string, size_t size)
return Utils::SmallStringView(string, size);
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