cemu-vcpkg/toolsrc/include/vcpkg/base/stringliteral.h
2019-04-08 23:26:18 -07:00

18 lines
336 B
C++

#pragma once
#include <string>
#include <vcpkg/base/zstringview.h>
namespace vcpkg
{
struct StringLiteral : ZStringView
{
template<int N>
constexpr StringLiteral(const char (&str)[N]) : ZStringView(str)
{
}
operator std::string() const { return std::string(data(), size()); }
};
}