DefaultConstructible.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0"?>
  2. <concept name="DefaultConstructible" 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="default-constructible-type"/>
  16. <models-sentence>The type <arg num="1"/> must be a model of <self/>.</models-sentence>
  17. <description><para>DefaultConstructible objects only need to have a default
  18. constructor.</para></description>
  19. <valid-expression name="Construction">
  20. <construct template-parameters="">
  21. <type name="X"/>
  22. </construct>
  23. <return-type><require-same-type testable="yes"><type name="X"/></require-same-type></return-type>
  24. <semantics>Construct an instance of the type with default parameters.</semantics>
  25. </valid-expression>
  26. <example-model>
  27. <type name="int"/>
  28. </example-model>
  29. <example-model>
  30. <apply-template name="std::vector">
  31. <type name="double"/>
  32. </apply-template>
  33. </example-model>
  34. </concept>