blob: 42be33e654c5cbd302fc522c68e27be9d79b2d9b [file] [log] [blame]
Václav Kubernát1ed4aa32020-01-23 13:13:28 +01001/*
2 * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
3 *
4 * Written by Václav Kubernát <kubernat@cesnet.cz>
5 *
6*/
7
8#include <experimental/iterator>
9#include "parser.hpp"
10namespace std {
11std::ostream& operator<<(std::ostream& s, const Completions& completion)
12{
13 s << std::endl << "Completions {" << std::endl << " m_completions: ";
14 std::transform(completion.m_completions.begin(), completion.m_completions.end(),
15 std::experimental::make_ostream_joiner(s, ", "),
16 [] (auto it) { return '"' + it + '"'; });
17 s << std::endl << " m_contextLength: " << completion.m_contextLength << std::endl;
18 s << "}" << std::endl;
19 return s;
20}
21}