Macaulay2 Engine
Loading...
Searching...
No Matches

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream & o,
const Word & w )

Definition at line 4 of file Word.cpp.

5{
6 o << "[";
7 if (w.size() > 0)
8 {
9 int i = 0;
10 for (; i < w.size() - 1; ++i)
11 {
12 o << w.begin()[i] << ",";
13 }
14 o << w.begin()[i];
15 }
16 o << "]";
17 return o;
18}
const int * begin() const
Definition Word.hpp:72
int size() const
Definition Word.hpp:74

References Word::begin(), and Word::size().