| 158 | private: |
| 159 | // Helper join function using std |
| 160 | template <typename Range> std::string join(Range &&range, const std::string &delimiter) const |
| 161 | { |
| 162 | std::ostringstream result; |
| 163 | auto it = std::begin(range); |
| 164 | const auto end = std::end(range); |
| 165 | |
| 166 | if (it != end) |
| 167 | { |
| 168 | result << *it++; |
| 169 | while (it != end) |
| 170 | { |
| 171 | result << delimiter << *it++; |
| 172 | } |
| 173 | } |
| 174 | return result.str(); |
| 175 | } |
| 176 | }; |
| 177 | |
| 178 | } // namespace osrm::engine::api |
no outgoing calls
no test coverage detected