• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Dereferenceable</title>
5<link rel="stylesheet" href="../../boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../index.html" title="Boost.Python Reference Manual">
8<link rel="up" href="../concepts.html" title="Chapter 1. Concepts">
9<link rel="prev" href="../concepts.html" title="Chapter 1. Concepts">
10<link rel="next" href="extractor.html" title="Extractor">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="" width="" height="" src="../../images/boost.png"></td></tr></table>
14<hr>
15<div class="spirit-nav">
16<a accesskey="p" href="../concepts.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="extractor.html"><img src="../../images/next.png" alt="Next"></a>
17</div>
18<div class="section">
19<div class="titlepage"><div><div><h2 class="title" style="clear: both">
20<a name="concepts.dereferenceable"></a><a class="link" href="dereferenceable.html" title="Dereferenceable">Dereferenceable</a>
21</h2></div></div></div>
22<div class="toc"><dl class="toc">
23<dt><span class="section"><a href="dereferenceable.html#concepts.dereferenceable.introduction">Introduction</a></span></dt>
24<dt><span class="section"><a href="dereferenceable.html#concepts.dereferenceable.concept_requirements">Concept
25        Requirements</a></span></dt>
26</dl></div>
27<div class="section">
28<div class="titlepage"><div><div><h3 class="title">
29<a name="concepts.dereferenceable.introduction"></a><a class="link" href="dereferenceable.html#concepts.dereferenceable.introduction" title="Introduction">Introduction</a>
30</h3></div></div></div>
31<p>
32          Instances of a <code class="computeroutput"><span class="identifier">Dereferenceable</span></code>
33          type can be used like a pointer to access an lvalue.
34        </p>
35</div>
36<div class="section">
37<div class="titlepage"><div><div><h3 class="title">
38<a name="concepts.dereferenceable.concept_requirements"></a><a class="link" href="dereferenceable.html#concepts.dereferenceable.concept_requirements" title="Concept Requirements">Concept
39        Requirements</a>
40</h3></div></div></div>
41<p>
42          In the table below, <code class="computeroutput"><span class="identifier">T</span></code> is
43          a model of Dereferenceable, and <code class="computeroutput"><span class="identifier">x</span></code>
44          denotes an object of type <code class="computeroutput"><span class="identifier">T</span></code>.
45          In addition, all pointers are <code class="computeroutput"><span class="identifier">Dereferenceable</span></code>.
46        </p>
47<div class="informaltable"><table class="table">
48<colgroup>
49<col>
50<col>
51<col>
52</colgroup>
53<thead><tr>
54<th>
55                  <p>
56                    Expression
57                  </p>
58                </th>
59<th>
60                  <p>
61                    Result
62                  </p>
63                </th>
64<th>
65                  <p>
66                    Operational Semantics
67                  </p>
68                </th>
69</tr></thead>
70<tbody><tr>
71<td>
72                  <p>
73                    <code class="computeroutput"><span class="identifier">get_pointer</span><span class="special">(</span><span class="identifier">x</span><span class="special">)</span></code>
74                  </p>
75                </td>
76<td>
77                  <p>
78                    convertible to <code class="computeroutput"><span class="identifier">pointee</span><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">*</span></code>
79                  </p>
80                </td>
81<td>
82                  <p>
83                    <code class="computeroutput"><span class="special">&amp;*</span><span class="identifier">x</span></code>,
84                    or a null pointer
85                  </p>
86                </td>
87</tr></tbody>
88</table></div>
89</div>
90</div>
91<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
92<td align="left"></td>
93<td align="right"><div class="copyright-footer">Copyright © 2002-2005, 2015 David Abrahams, Stefan Seefeld<p>
94        Distributed under the Boost Software License, Version 1.0. (See accompanying
95        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>
96      </p>
97</div></td>
98</tr></table>
99<hr>
100<div class="spirit-nav">
101<a accesskey="p" href="../concepts.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="extractor.html"><img src="../../images/next.png" alt="Next"></a>
102</div>
103</body>
104</html>
105