File: weakequal.yo

package info (click to toggle)
c%2B%2B-annotations 13.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,576 kB
  • sloc: cpp: 25,297; makefile: 1,523; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (14 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
The class tt(std::weak_equality)hi(weak_equality) is used when implementing
the spaceship operator for classes that only support (in)equality comparisons,
but not substitutability. The class provides free functions 
tt(operator==) and tt(operator!=) expecting tt(weak_equality) arguments (one
argument may be 0) and it defines two static objects:
    itemization(
    itt(weak_equality::equivalent), indicating equality;
    itt(weak_equality::nonequivalent), indicating non-equality;
    )

Note: at the current release of the Gnu bf(C++) compiler (10.0.0) this class
is not yet available in the tthi(compare) header file.