pantry/projects/abseil.io/test.cc

10 lines
247 B
C++
Raw Normal View History

#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";
}