Top of document
©Copyright 1999 Rogue Wave Software

operator!=, operator>, operator<=, operator>=


     Utility Operators

Summary

Operators for the C++ Standard Template Library

Contents

Synopsis

#include <utility>
template <class T>
bool operator!= (const T&, const T&);
template <class T>
 bool operator> (const T&, const T&);
template <class T>
 bool operator<= (const T&, const T&);
template <class T>
 bool operator>= (const T&, const T&);

Description

To avoid redundant definitions of operator!= out of operator== and of operators >, <=, and >= out of operator<, the library provides these definitions:

    operator!= returns !(x==y),
    operator>  returns y<x,
    operator<= returns !(y<x), and
    operator>= returns !(x<y).

Top of document