EqualityComparable.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0"?>
  2. <concept name="EqualityComparable" category="Utility"><!--
  3. Based on concepts from the SGI Standard Template Library documentation:
  4. Copyright (c) 1996-1999
  5. Silicon Graphics Computer Systems, Inc.
  6. Copyright (c) 1994
  7. Hewlett-Packard Company
  8. --><!--
  9. Copyright 2000-2001 University of Notre Dame du Lac.
  10. Copyright 2001-2002 Indiana University.
  11. Some concepts based on versions from the MTL draft manual and Boost Graph
  12. and Property Map documentation:
  13. Copyright (c) Jeremy Siek, Lie-Quan Lee, and Andrew Lumsdaine 2000
  14. -->
  15. <param name="X" role="comparable-type"/>
  16. <models-sentence>The type <arg num="1"/> must be a model of
  17. <self/>.</models-sentence>
  18. <description><para>Equality Comparable types must have <code>==</code> and
  19. <code>!=</code> operators.</para></description>
  20. <notation variables="x y">
  21. <sample-value>
  22. <type name="X"/>
  23. </sample-value>
  24. </notation>
  25. <valid-expression name="Equality test">
  26. <equal-to>
  27. <sample-value><type name="X"/></sample-value>
  28. <sample-value><type name="X"/></sample-value>
  29. </equal-to>
  30. <return-type>
  31. <convertible-to testable="yes">
  32. <type name="bool"/>
  33. </convertible-to>
  34. </return-type>
  35. </valid-expression>
  36. <valid-expression name="Inequality test">
  37. <not-equal-to>
  38. <sample-value><type name="X"/></sample-value>
  39. <sample-value><type name="X"/></sample-value>
  40. </not-equal-to>
  41. <return-type>
  42. <convertible-to testable="yes">
  43. <type name="bool"/>
  44. </convertible-to>
  45. </return-type>
  46. </valid-expression>
  47. <example-model>
  48. <type name="int"/>
  49. </example-model>
  50. <example-model>
  51. <apply-template name="std::vector">
  52. <type name="int"/>
  53. </apply-template>
  54. </example-model>
  55. </concept>