stlab.adobe.com Adobe Systems Incorporated

other_of
[Non-Mutating Algorithms]


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.


Functions

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

Function Documentation

const T& adobe::other_of ( const P &  pair,
const T &  x 
)

other_of implementation

Definition at line 49 of file other_of.hpp.

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.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google