| namespace metal { | |
| /// \ingroup pair | |
| /// | |
| /// ### Description | |
| /// Retrieves the second element of a \pair. | |
| /// | |
| /// ### Usage | |
| /// For any \pair `p` | |
| /// \code | |
| /// using result = metal::second<p>; | |
| /// \endcode | |
| /// | |
| /// \returns: \value | |
| /// \semantics: | |
| /// If `p` contains \values `p_0` and `p_1` in that order, then | |
| /// \code | |
| /// using result = p_1; | |
| /// \endcode | |
| /// | |
| /// ### Example | |
| /// \snippet pair.cpp second | |
| /// | |
| /// ### See Also | |
| /// \see pair, first | |
| template <class seq> | |
| using second = metal::if_<metal::is_pair<seq>, metal::back<seq>>; | |
| } | |