#ifndef UTIL_H_440DEAA0 #define UTIL_H_440DEAA0 #include #include namespace twitter { template std::string implode(InputIterator first, InputIterator last, std::string delimiter) { std::stringstream result; for (InputIterator it = first; it != last; it++) { if (it != first) { result << delimiter; } result << *it; } return result.str(); } template std::unique_ptr make_unique(Args&&... args) { return std::unique_ptr(new T(std::forward(args)...)); } }; #endif /* end of include guard: UTIL_H_440DEAA0 */