Skip to content
Permalink
Browse files

add printint utilities

  • Loading branch information...
andrewprock committed Jul 20, 2019
1 parent e9bcffe commit 93575a6031c3743f92619ddc8243d48702467c45
@@ -1312,12 +1312,6 @@ size_t CardSet::rankColex() const
return ret;
}

std::ostream& operator<<(std::ostream& sout, const pokerstove::CardSet& e)
{
sout << e.str();
return sout;
}

vector<int> pokerstove::findSuitPermutation(const CardSet& source, const CardSet& dest)
{
vector<int> rot(4, -1);
@@ -197,4 +197,13 @@ std::vector<int> findSuitPermutation(const CardSet& source, const CardSet& dest)

} // namespace pokerstove

/**
* our little printer
*/
inline std::ostream& operator<<(std::ostream& sout, const pokerstove::CardSet & e)
{
sout << e.str();
return sout;
}

#endif // PEVAL_CARDSET_H_
@@ -142,4 +142,10 @@ namespace pokerstove

} // namespace pokerstove

inline std::ostream& operator<<(std::ostream& sout, const pokerstove::PokerHand & h)
{
sout << h.str();
return sout;
}

#endif // PEVAL_POKERHAND_H_

0 comments on commit 93575a6

Please sign in to comment.
You can’t perform that action at this time.