4#include "Foundation/StringView.h"
18 using traits_type = std::char_traits<char>;
35 [[nodiscard]]
constexpr operator const char* ()
const noexcept {
return view.data(); }
38 [[nodiscard]]
constexpr const char*
c_str() const noexcept {
return view.data(); }
Utility class to ensure that a StringView string is null terminated.
StringViewCharPtr(const char *data)=delete
Construct from constant C-string. Always null terminated.
StringViewCharPtr(const std::string &data)=delete
Deleted to avoid passing a std::string converted to string_view in constructor above.
constexpr const char * c_str() const noexcept
Gets null terminated C-string.
Provides a weakly referenced view over the contents of a string.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....