|
|
@ -1,7 +1,8 @@ |
|
|
|
#include "src/utility/vector.h"
|
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
|
std::ostream& operator<<(std::ostream& out, std::vector<ValueType> const& vector) { |
|
|
|
//template<typename ValueType>
|
|
|
|
//std::ostream& operator<<(std::ostream& out, std::vector<ValueType> const& vector) {
|
|
|
|
std::ostream& operator<<(std::ostream& out, std::vector<double> const& vector) { |
|
|
|
out << "vector (" << vector.size() << ") [ "; |
|
|
|
for (uint_fast64_t i = 0; i < vector.size() - 1; ++i) { |
|
|
|
out << vector[i] << ", "; |
|
|
@ -12,5 +13,5 @@ std::ostream& operator<<(std::ostream& out, std::vector<ValueType> const& vector |
|
|
|
} |
|
|
|
|
|
|
|
// Explicitly instantiate functions.
|
|
|
|
template std::ostream& operator<<(std::ostream& out, std::vector<double> const& vector); |
|
|
|
template std::ostream& operator<<(std::ostream& out, std::vector<uint_fast64_t> const& vector); |
|
|
|
//template std::ostream& operator<<(std::ostream& out, std::vector<double> const& vector);
|
|
|
|
//template std::ostream& operator<<(std::ostream& out, std::vector<uint_fast64_t> const& vector);
|