Regina Calculation Engine
Public Member Functions
regina::stl::select2nd< Pair > Struct Template Reference

An adaptable unary function used to select the second element of a pair. More...

#include <utilities/stlutils.h>

List of all members.

Public Member Functions

const Pair::second_type & operator() (const Pair &x) const
 Returns the second element of the given pair.

Detailed Description

template<class Pair>
struct regina::stl::select2nd< Pair >

An adaptable unary function used to select the second element of a pair.

This class is for use with the Standard Template Library.

Precondition:
The template argument Pair has a data member Pair::second.
Python:
Not present.
Author:
This class was taken and modified from the Standard Template Library (http://www.stlport.org/).

Member Function Documentation

template<class Pair >
const Pair::second_type& regina::stl::select2nd< Pair >::operator() ( const Pair &  x) const
inline

Returns the second element of the given pair.

Parameters:
xthe pair to examine.
Returns:
the second element of the given pair.

The documentation for this struct was generated from the following file:

Copyright © 1999-2012, The Regina development team
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).