other_of |
Functions | |
template<typename T , typename P , typename BinaryPredicate > | |
const T & | other_of (const P &pair, const T &x, BinaryPredicate pred) |
template<typename T , typename P > | |
const T & | other_of (const P &pair, const T &x) |
Detailed Description
Given a pair and an EqualityComparable item, this will return the item that is not equal to the item passed. In the case when neither item is equal to the item passed the results are undefined.
Function Documentation
const T& adobe::other_of | ( | const P & | pair, |
const T & | x, | ||
BinaryPredicate | pred | ||
) |
other_of implementation
Definition at line 37 of file other_of.hpp.
const T& adobe::other_of | ( | const P & | pair, |
const T & | x | ||
) |
other_of implementation
Definition at line 49 of file other_of.hpp.