File: CopyConstructible.xml

package info (click to toggle)
boost 1.33.1-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 100,948 kB
  • ctags: 145,103
  • sloc: cpp: 573,492; xml: 49,055; python: 15,626; ansic: 13,588; sh: 2,099; yacc: 858; makefile: 660; perl: 427; lex: 111; csh: 6
file content (47 lines) | stat: -rw-r--r-- 1,417 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
<?xml version="1.0"?>
<concept name="CopyConstructible" 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="copy-constructible-type"/>

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

  <description>
  <para>Copy constructible types must be able to be constructed from another
  member of the type.</para>
  </description>

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

  <valid-expression name="Copy construction">
    <construct template-parameters="">
      <type name="X"/>
      <sample-value><const><reference-to><type name="X"/></reference-to></const></sample-value>
    </construct>
    <return-type>
      <require-same-type testable="yes">
	<type name="X"/>
      </require-same-type>
    </return-type>
    <semantics>Require copy constructor.</semantics>
  </valid-expression>

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