blob: b950728bdc07aa7cb1bd8e8f5cc0a10fc71aac5d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef UTIL_H_440DEAA0
#define UTIL_H_440DEAA0
#include <string>
#include <sstream>
#include <memory>
#include <ctime>
namespace twitter {
template <class InputIterator>
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();
}
time_t timegm(struct tm * t);
};
#endif /* end of include guard: UTIL_H_440DEAA0 */
|