CopyConstructible.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0"?>
  2. <concept name="CopyConstructible" 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="copy-constructible-type"/>
  16. <models-sentence>The type <arg num="1"/> must be a model of <self/>.</models-sentence>
  17. <description>
  18. <para>Copy constructible types must be able to be constructed from another
  19. member of the type.</para>
  20. </description>
  21. <notation variables="x y">
  22. <sample-value>
  23. <type name="X"/>
  24. </sample-value>
  25. </notation>
  26. <valid-expression name="Copy construction">
  27. <construct template-parameters="">
  28. <type name="X"/>
  29. <sample-value><const><reference-to><type name="X"/></reference-to></const></sample-value>
  30. </construct>
  31. <return-type>
  32. <require-same-type testable="yes">
  33. <type name="X"/>
  34. </require-same-type>
  35. </return-type>
  36. <semantics>Require copy constructor.</semantics>
  37. </valid-expression>
  38. <example-model>
  39. <type name="int"/>
  40. </example-model>
  41. </concept>