Go to the source code of this file.
|
template<typename T > |
static std::ostream & | std::operator<< (std::ostream &out, const std::vector< T > &v) |
| Convenient printout function for a vector. More...
|
|
template<typename T > |
static std::ostream & | std::operator<< (std::ostream &out, const std::initializer_list< T > &v) |
| Convenient printout function for an initializer list. More...
|
|
template<typename T , std::size_t N> |
static std::ostream & | std::operator<< (std::ostream &out, const std::array< T, N > &a) |
| Convenient printout function for an array. More...
|
|
◆ operator<<() [1/3]
template<typename T >
static std::ostream& std::operator<< |
( |
std::ostream & |
out, |
|
|
const std::vector< T > & |
v |
|
) |
| |
|
static |
Convenient printout function for a vector.
- Parameters
-
[in] | out | output stream |
[in] | v | vector to print out |
Definition at line 27 of file grid.cc.
28 auto column = out.tellp();
30 for (
const auto &x : v) {
31 if (out.tellp() - column >= 100) {
◆ operator<<() [2/3]
template<typename T >
static std::ostream& std::operator<< |
( |
std::ostream & |
out, |
|
|
const std::initializer_list< T > & |
v |
|
) |
| |
|
static |
Convenient printout function for an initializer list.
- Parameters
-
[in] | out | output stream |
[in] | v | initializer list to print out |
Definition at line 46 of file grid.cc.
48 auto column = out.tellp();
50 for (
const auto &x : v) {
51 if (out.tellp() - column >= 100) {
◆ operator<<() [3/3]
template<typename T , std::size_t N>
static std::ostream& std::operator<< |
( |
std::ostream & |
out, |
|
|
const std::array< T, N > & |
a |
|
) |
| |
|
static |
Convenient printout function for an array.
- Parameters
-
[in] | out | output stream |
[in] | a | array to print out |
Definition at line 66 of file grid.cc.
67 auto column = out.tellp();
69 for (
const auto &x : a) {
70 if (out.tellp() - column >= 100) {