mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 12:15:06 +03:00
10 lines
247 B
C++
10 lines
247 B
C++
|
#include <iostream>
|
||
|
#include <string>
|
||
|
#include <vector>
|
||
|
#include "absl/strings/str_join.h"
|
||
|
|
||
|
int main() {
|
||
|
std::vector<std::string> v = {"foo","bar","baz"};
|
||
|
std::string s = absl::StrJoin(v, "-");
|
||
|
std::cout << "Joined string: " << s << "\\n";
|
||
|
}
|