Skip to content

Commit

Permalink
More concrete print function
Browse files Browse the repository at this point in the history
  • Loading branch information
Qup42 committed Jun 21, 2024
1 parent 8e86de6 commit 10aacef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions src/index/LocatedTriples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,7 @@ std::ostream& operator<<(std::ostream& os, const LocatedTriples& lts) {
}

// ____________________________________________________________________________
template <typename T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& v) {
std::ranges::copy(v, std::ostream_iterator<T>(os, ", "));
std::ostream& operator<<(std::ostream& os, const std::vector<IdTriple>& v) {
std::ranges::copy(v, std::ostream_iterator<IdTriple>(os, ", "));
return os;
}

template std::ostream& operator<< <IdTriple>(std::ostream& os,
const std::vector<IdTriple>& v);
3 changes: 1 addition & 2 deletions src/index/LocatedTriples.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ class LocatedTriplesPerBlock {
};

// Human-readable representation , which are very useful for debugging.
template <typename T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& v);
std::ostream& operator<<(std::ostream& os, const std::vector<IdTriple>& v);

// DEFINITION OF THE POSITION OF A LOCATED TRIPLE IN A PERMUTATION
//
Expand Down

0 comments on commit 10aacef

Please sign in to comment.