DDC 0.15.0
Loading...
Searching...
No Matches
discrete_vector.cpp
1// Copyright (C) The DDC development team, see COPYRIGHT.md file
2//
3// SPDX-License-Identifier: MIT
4
5#include <ostream>
6#include <span>
7
9
10namespace ddc::detail {
11
12void print_discrete_vector(std::ostream& os, std::span<DiscreteVectorElement const> const view)
13{
14 os << '(';
15 if (!view.empty()) {
16 os << view.front();
17 for (DiscreteVectorElement const value : view.subspan(1)) {
18 os << ", " << value;
19 }
20 }
21 os << ')';
22}
23
24} // namespace ddc::detail
The top-level namespace of DDC.