ADC Home > Reference Library > Reference > Darwin > Miscellaneous User Space API Reference

 


stl_relops.h

Introduction

This is an internal header file, included by other library headers. You should not attempt to use it directly.

@if maint Inclusion of this file has been removed from all of the other STL headers for safety reasons, except std_utility.h. For more information, see the thread of about twenty messages starting with http://gcc.gnu.org/ml/libstdc++/2001-01/msg00223.html , or the FAQ at http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#4_4 .

Short summary: the rel_ops operators should be avoided for the present. @endif



Functions

operator !=
operator <=
operator >=

operator !=


/**
@brief Defines @c != for arbitrary types, in terms of @c ==.
@param x A thing.
@param y Another thing.
@return x != y

This function uses @c == to determine its result.
    */
template <class _Tp> inline bool operator!=(
    const _Tp& __x,
    const _Tp& __y) 
Discussion

@namespace std::rel_ops @brief The generated relational operators are sequestered here.


operator <=


template <class _Tp> inline bool operator<=(
    const _Tp& __x,
    const _Tp& __y) 
Parameters
x
A thing.
y
Another thing.
Return Value

x <= y

This function uses @c < to determine its result.

Discussion

@brief Defines @c <= for arbitrary types, in terms of @c <.


operator >=


template <class _Tp> inline bool operator>=(
    const _Tp& __x,
    const _Tp& __y) 
Parameters
x
A thing.
y
Another thing.
Return Value

x >= y

This function uses @c < to determine its result.

Discussion

@brief Defines @c >= for arbitrary types, in terms of @c <.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2006-06-20