cemu-vcpkg/toolsrc/include/vcpkg/base/stringliteral.h

18 lines
336 B
C
Raw Normal View History

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