DefaultConstructible.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>Concept DefaultConstructible</title>
  5. <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
  7. <link rel="home" href="index.html" title="Concept reference">
  8. <link rel="up" href="index.html" title="Concept reference">
  9. <link rel="prev" href="RandomAccessIterator.html" title="Concept RandomAccessIterator">
  10. <link rel="next" href="CopyConstructible.html" title="Concept CopyConstructible">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr>
  14. <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
  15. <td align="center"><a href="../../../../index.html">Home</a></td>
  16. <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
  17. <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
  18. <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
  19. <td align="center"><a href="../../../../more/index.htm">More</a></td>
  20. </tr></table>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="RandomAccessIterator.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="index.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="CopyConstructible.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
  24. </div>
  25. <div class="refentry">
  26. <a name="DefaultConstructible"></a><div class="titlepage"></div>
  27. <div class="refnamediv">
  28. <h2><span class="refentrytitle">Concept DefaultConstructible</span></h2>
  29. <p>DefaultConstructible</p>
  30. </div>
  31. <div class="refsect1">
  32. <a name="idm45853365317232"></a><h2>Description</h2>
  33. <p>DefaultConstructible objects only need to have a default
  34. constructor.</p>
  35. </div>
  36. <div class="refsect1">
  37. <a name="idm45853365316512"></a><h2>Notation</h2>
  38. <div class="variablelist"><dl class="variablelist">
  39. <dt><span class="term">X</span></dt>
  40. <dd>A type playing the role of default-constructible-type in the <a class="link" href="DefaultConstructible.html" title="Concept DefaultConstructible">DefaultConstructible</a> concept.</dd>
  41. </dl></div>
  42. </div>
  43. <div class="refsect1">
  44. <a name="idm45853365314528"></a><h2>Valid expressions</h2>
  45. <div class="informaltable"><table class="table">
  46. <colgroup>
  47. <col>
  48. <col>
  49. <col>
  50. <col>
  51. </colgroup>
  52. <thead><tr>
  53. <th>Name</th>
  54. <th>Expression</th>
  55. <th>Type</th>
  56. <th>Semantics</th>
  57. </tr></thead>
  58. <tbody><tr>
  59. <td><p>Construction</p></td>
  60. <td><p>X()</p></td>
  61. <td><p><span class="type">X</span></p></td>
  62. <td><p>Construct an instance of the type with default parameters.</p></td>
  63. </tr></tbody>
  64. </table></div>
  65. </div>
  66. <div class="refsect1">
  67. <a name="idm45853365310368"></a><h2>Models</h2>
  68. <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
  69. <li class="listitem"><span class="simplelist"><span class="type">int</span></span></li>
  70. <li class="listitem"><span class="simplelist"><span class="type">std::vector&lt;double&gt;</span></span></li>
  71. </ul></div>
  72. </div>
  73. </div>
  74. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  75. <td align="left"></td>
  76. <td align="right"><div class="copyright-footer">Copyright &#169; 2001, 2002 Indiana University<br>Copyright &#169; 2000, 2001 University of Notre Dame du Lac<br>Copyright &#169; 2000 Jeremy Siek, Lie-Quan Lee, Andrew Lumsdaine<br>Copyright &#169; 1996-1999 Silicon Graphics Computer Systems, Inc.<br>Copyright &#169; 1994 Hewlett-Packard Company<p>Distributed under the Boost Software License, Version 1.0.
  77. (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at
  78. <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
  79. </p>
  80. <p>This product includes software developed at the University
  81. of Notre Dame and the Pervasive Technology Labs at Indiana
  82. University. For technical information contact Andrew Lumsdaine
  83. at the Pervasive Technology Labs at Indiana University. For
  84. administrative and license questions contact the Advanced
  85. Research and Technology Institute at 351 West 10th Street.
  86. Indianapolis, Indiana 46202, phone 317-278-4100, fax
  87. 317-274-5902.</p>
  88. <p>Some concepts based on versions from the MTL draft manual
  89. and Boost Graph and Property Map documentation, the SGI Standard
  90. Template Library documentation and the Hewlett-Packard STL,
  91. under the following license:
  92. </p>
  93. <div class="blockquote"><blockquote class="blockquote"><p>Permission to use, copy, modify, distribute and
  94. sell this software and its documentation for any purpose is
  95. hereby granted without fee, provided that the above copyright
  96. notice appears in all copies and that both that copyright
  97. notice and this permission notice appear in supporting
  98. documentation. Silicon Graphics makes no representations
  99. about the suitability of this software for any purpose. It is
  100. provided "as is" without express or implied
  101. warranty.</p></blockquote></div>
  102. </div></td>
  103. </tr></table>
  104. <hr>
  105. <div class="spirit-nav">
  106. <a accesskey="p" href="RandomAccessIterator.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="index.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="CopyConstructible.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
  107. </div>
  108. </body>
  109. </html>