Exemple #1
0
 void EXPECT_IS_RIGHT(const either<Left,Right> &val) {
   EXPECT_FALSE(val.is_left());
   EXPECT_TRUE(val.is_right());
 }
Exemple #2
0
bool operator==(either<Left, Right> const& lhs, Right const& rhs)
{
    return lhs.is_right() && lhs.right() == rhs;
}