29 template <
typename Iterator>
30 std::string
containerToString(
const Iterator begin,
const Iterator end,
const std::string& delimiter =
", ")
33 std::ostringstream output;
34 for (Iterator it = begin; it != end; it++)
53 template <
typename Iterator>
54 std::string
containerToString(
const Iterator begin,
const Iterator end,
const char* delimiter)
67 template <
typename Container>
81 template <
typename Container>
84 return containerToString(std::begin(cont), std::end(cont), std::string(delimiter));
100 typename T::iterator
remove_const(
const typename T::const_iterator& it, T& cont)
102 typename T::iterator ret = cont.begin();
103 std::advance(ret, std::distance((
typename T::const_iterator)ret, it));
132 std::atomic<bool>& variable;
137 template <
typename T>
140 return (T(0) < val) - (val < T(0));