| 20 | |
| 21 | template <class T, class A> |
| 22 | T joinify(const A &begin, const A &end, const T &t) |
| 23 | { |
| 24 | T result; |
| 25 | for (A it = begin; it != end; it++) { |
| 26 | if (!result.empty()) |
| 27 | result.append(t); |
| 28 | result.append(*it); |
| 29 | } |
| 30 | return result; |
| 31 | } |
| 32 | |
| 33 | #endif |
no test coverage detected