Программы на C++. Форум разработчиков
-
Anonymous
Вектор, содержащий как строку, так и string_view, используя std::variant
Сообщение
Anonymous »
У меня есть этот код
Код: Выделить всё
#include
#include
#include
using namespace std;
std::string join(std::vector input) {
return "";
}
int main(int argc, char* argv[]) {
string a = "hello";
string_view b = "world";
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78531494/vector-containing-both-string-and-string-view-using-stdvariant[/url]
1716619077
Anonymous
У меня есть этот код
[code]#include
#include
#include
using namespace std;
std::string join(std::vector input) {
return "";
}
int main(int argc, char* argv[]) {
string a = "hello";
string_view b = "world";
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78531494/vector-containing-both-string-and-string-view-using-stdvariant[/url]