File: LessThanComparable.xml

package info (click to toggle)
boost 1.34.1-14
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 116,412 kB
  • ctags: 259,566
  • sloc: cpp: 642,395; xml: 56,450; python: 17,612; ansic: 14,520; sh: 2,265; yacc: 858; perl: 481; makefile: 478; lex: 94; sql: 74; csh: 6
file content (81 lines) | stat: -rw-r--r-- 2,669 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0"?>
<concept name="LessThanComparable" category="Utility"><!--
Based on concepts from the SGI Standard Template Library documentation:
Copyright (c) 1996-1999
Silicon Graphics Computer Systems, Inc.

Copyright (c) 1994
Hewlett-Packard Company
--><!--
Copyright 2000-2001 University of Notre Dame du Lac.
Copyright 2001-2002 Indiana University.
Some concepts based on versions from the MTL draft manual and Boost Graph
and Property Map documentation:
Copyright (c) Jeremy Siek, Lie-Quan Lee, and Andrew Lumsdaine 2000
-->
  <param name="X" role="comparable-type"/>

  <models-sentence>The type <arg num="1"/> must be a model of <self/>.</models-sentence>

  <description><para>LessThanComparable types must have <code>&lt;</code>,
  <code>&gt;</code>, <code>&lt;=</code>, and <code>&gt;=</code>
  operators.</para></description>

  <notation variables="x y"><sample-value><type name="X"/></sample-value></notation>

  <valid-expression name="Less than">
    <less-than>
      <sample-value><type name="X"/></sample-value>
      <sample-value><type name="X"/></sample-value>
    </less-than>
    <return-type>
      <convertible-to testable="yes">
	<type name="bool"/>
      </convertible-to>
    </return-type>
    <semantics>Determine if one value is less than another.</semantics>
  </valid-expression>

  <valid-expression name="Less than or equal">
    <less-than-or-equal>
      <sample-value><type name="X"/></sample-value>
      <sample-value><type name="X"/></sample-value>
    </less-than-or-equal>
    <return-type>
      <convertible-to testable="yes">
	<type name="bool"/>
      </convertible-to>
    </return-type>
    <semantics>Determine if one value is less than or equal to another.</semantics>
  </valid-expression>

  <valid-expression name="Greater than">
    <greater-than>
      <sample-value><type name="X"/></sample-value>
      <sample-value><type name="X"/></sample-value>
    </greater-than>
    <return-type>
      <convertible-to testable="yes">
	<type name="bool"/>
      </convertible-to>
    </return-type>
    <semantics>Determine if one value is greater than another.</semantics>
  </valid-expression>

  <valid-expression name="Greater than or equal to">
    <greater-than-or-equal>
      <sample-value><type name="X"/></sample-value>
      <sample-value><type name="X"/></sample-value>
    </greater-than-or-equal>
    <return-type>
      <convertible-to testable="yes">
	<type name="bool"/>
      </convertible-to>
    </return-type>
    <semantics>Determine if one value is greater than or equal to another.</semantics>
  </valid-expression>

  <example-model>
    <type name="int"/>
  </example-model>
</concept>