Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 44dce83e51
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (22 sloc) 0.595 kB
#include "clic_printer.hpp"
#include <boost/foreach.hpp>
void printIndex(
std::ostream& out,
const ClicIndex& index)
{
BOOST_FOREACH(const ClicIndex::value_type& it, index) {
if (!it.first.empty()) {
out << it.first << '\t';
printLocations(out, it.second);
out << std::endl;
}
}
}
void printLocations(std::ostream& out, const std::set<std::string>& locations) {
bool first = true;
BOOST_FOREACH(const std::string& loc, locations) {
if (!first) out << '\t';
out << loc;
first = false;
}
}
Jump to Line
Something went wrong with that request. Please try again.