Václav Kubernát | 1ed4aa3 | 2020-01-23 13:13:28 +0100 | [diff] [blame] | 1 | /* |
| 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" |
| 10 | namespace std { |
| 11 | std::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 | } |