United States    
COMPAQ STORE | PRODUCTS | SERVICES | SUPPORT
| CONTACT US | SEARCH
C++
operators (3C++std) - Tru64 UNIX
Standard C++ Library
Copyright 1996, Rogue Wave Software, Inc.

NAME

  operator!=, operator>, operator<=, operator>=  - Operators for the C++
  Standard C++ Library

SYNOPSIS

  #include <utility>

  namespace rel_ops {

  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).

  To avoid clashes with other global operators these definitions are
  contained in the namespace rel_ops.   To use them either scope explicitly
  or provide a using declaration (e.g. using_namespace_rel_ops).

STANDARDS CONFORMANCE

  ANSI X3J16/ISO WG21 Joint C++ Committee
  

1.800.AT.COMPAQ

privacy and legal statement