Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches

Functions

template<typename T, typename P, typename BinaryPredicate>
const T & other_of (const P &pair, const T &x, BinaryPredicate pred)
 other_of implementation
template<typename T, typename P>
const T & other_of (const P &pair, const T &x)
 other_of implementation

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

◆ other_of() [1/2]

template<typename T, typename P, typename BinaryPredicate>
const T & other_of ( const P & pair,
const T & x,
BinaryPredicate pred )

Definition at line 37 of file other_of.hpp.

◆ other_of() [2/2]

template<typename T, typename P>
const T & other_of ( const P & pair,
const T & x )

Definition at line 49 of file other_of.hpp.