blob: 1618d078a659a7fc61838ca9d4eafb8224983514 [file] [log] [blame]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Class template offset_ptr</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../boost_interprocess_reference.html#header.boost.interprocess.offset_ptr_hpp" title="Header &lt;boost/interprocess/offset_ptr.hpp&gt;">
<link rel="prev" href="simple_seq_fit.html" title="Class template simple_seq_fit">
<link rel="next" href="operator___id821409.html" title="Function template operator==">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="simple_seq_fit.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_interprocess_reference.html#header.boost.interprocess.offset_ptr_hpp"><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="operator___id821409.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.interprocess.offset_ptr"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template offset_ptr</span></h2>
<p>boost::interprocess::offset_ptr</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../boost_interprocess_reference.html#header.boost.interprocess.offset_ptr_hpp" title="Header &lt;boost/interprocess/offset_ptr.hpp&gt;">boost/interprocess/offset_ptr.hpp</a>&gt;
</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> PointedType<span class="special">&gt;</span>
<span class="keyword">class</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
<span class="comment">// types</span>
<span class="keyword">typedef</span> <span class="identifier">PointedType</span> <span class="special">*</span> <a name="boost.interprocess.offset_ptr.pointer"></a><span class="identifier">pointer</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="boost.interprocess.offset_ptr.reference"></a><span class="identifier">reference</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">PointedType</span> <a name="boost.interprocess.offset_ptr.value_type"></a><span class="identifier">value_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> <a name="boost.interprocess.offset_ptr.difference_type"></a><span class="identifier">difference_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">random_access_iterator_tag</span> <a name="boost.interprocess.offset_ptr.iterator_category"></a><span class="identifier">iterator_category</span><span class="special">;</span>
<span class="comment">// <a class="link" href="offset_ptr.html#boost.interprocess.offset_ptrconstruct-copy-destruct">construct/copy/destruct</a></span>
<a class="link" href="offset_ptr.html#id820908-bb"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="identifier">pointer</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <a class="link" href="offset_ptr.html#id820922-bb"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="identifier">T</span> <span class="special">*</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="offset_ptr.html#id820939-bb"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> <a class="link" href="offset_ptr.html#id820954-bb"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Y<span class="special">&gt;</span> <a class="link" href="offset_ptr.html#id820977-bb"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">Y</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Y<span class="special">&gt;</span> <a class="link" href="offset_ptr.html#id821005-bb"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">Y</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Y<span class="special">&gt;</span> <a class="link" href="offset_ptr.html#id821033-bb"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">Y</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Y<span class="special">&gt;</span> <a class="link" href="offset_ptr.html#id821061-bb"><span class="identifier">offset_ptr</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">Y</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span>
offset_ptr&amp; <a class="link" href="offset_ptr.html#id821089-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="identifier">pointer</span><span class="special">)</span><span class="special">;</span>
offset_ptr&amp; <a class="link" href="offset_ptr.html#id821100-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> offset_ptr&amp; <a class="link" href="offset_ptr.html#id821386-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
<span class="comment">// <a class="link" href="offset_ptr.html#id820667-bb">public member functions</a></span>
<span class="identifier">pointer</span> <a class="link" href="offset_ptr.html#id820670-bb"><span class="identifier">get</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> <a class="link" href="offset_ptr.html#id820682-bb"><span class="identifier">get_offset</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="identifier">pointer</span> <a class="link" href="offset_ptr.html#id820690-bb"><span class="keyword">operator</span><span class="special">-&gt;</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="identifier">reference</span> <a class="link" href="offset_ptr.html#id820702-bb"><span class="keyword">operator</span><span class="special">*</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="identifier">reference</span> <a class="link" href="offset_ptr.html#id820715-bb"><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="offset_ptr.html#id820732-bb"><span class="keyword">operator</span><span class="special">+</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="offset_ptr.html#id820750-bb"><span class="keyword">operator</span><span class="special">-</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="offset_ptr.html#id820769-bb"><span class="keyword">operator</span><span class="special">+=</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="offset_ptr.html#id820789-bb"><span class="keyword">operator</span><span class="special">-=</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="offset_ptr.html#id820808-bb"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="keyword">void</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="offset_ptr.html#id820828-bb"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a class="link" href="offset_ptr.html#id820846-bb"><span class="keyword">operator</span><span class="special">--</span></a><span class="special">(</span><span class="keyword">void</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <a class="link" href="offset_ptr.html#id820865-bb"><span class="keyword">operator</span><span class="special">--</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span>
<a class="link" href="offset_ptr.html#id820884-bb"><span class="keyword">operator</span> <span class="identifier">unspecified_bool_type</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="keyword">bool</span> <a class="link" href="offset_ptr.html#id820896-bb"><span class="keyword">operator</span><span class="special">!</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id1483987"></a><h2>Description</h2>
<p>A smart pointer that stores the offset between between the pointer and the the object it points. This allows offset allows special properties, since the pointer is independent from the address address of the pointee, if the pointer and the pointee are still separated by the same offset. This feature converts offset_ptr in a smart pointer that can be placed in shared memory and memory mapped files mapped in different addresses in every process. </p>
<div class="refsect2">
<a name="id1484001"></a><h3>
<a name="boost.interprocess.offset_ptrconstruct-copy-destruct"></a><code class="computeroutput">offset_ptr</code>
public
construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="id820908-bb"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="identifier">pointer</span> ptr <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="special">;</span></pre>
<p>Constructor from raw pointer (allows "0" pointer conversion). Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <a name="id820922-bb"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="identifier">T</span> <span class="special">*</span> ptr<span class="special">)</span><span class="special">;</span></pre>
<p>Constructor from other pointer. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="id820939-bb"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> ptr<span class="special">)</span><span class="special">;</span></pre>
<p>Constructor from other offset_ptr Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> <a name="id820954-bb"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span> <span class="special">&gt;</span> <span class="special">&amp;</span> ptr<span class="special">)</span><span class="special">;</span></pre>
<p>Constructor from other offset_ptr. If pointers of pointee types are convertible, offset_ptrs will be convertibles. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Y<span class="special">&gt;</span> <a name="id820977-bb"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">Y</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span></pre>
<p>Emulates static_cast operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Y<span class="special">&gt;</span> <a name="id821005-bb"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">Y</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span></pre>
<p>Emulates const_cast operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Y<span class="special">&gt;</span> <a name="id821033-bb"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">Y</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span></pre>
<p>Emulates dynamic_cast operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Y<span class="special">&gt;</span> <a name="id821061-bb"></a><span class="identifier">offset_ptr</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">Y</span> <span class="special">&gt;</span> <span class="special">&amp;</span> r<span class="special">,</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span></pre>
<p>Emulates reinterpret_cast operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout">offset_ptr&amp; <a name="id821089-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="identifier">pointer</span> from<span class="special">)</span><span class="special">;</span></pre>
<p>Assignment from pointer (saves extra conversion). Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout">offset_ptr&amp; <a name="id821100-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> pt<span class="special">)</span><span class="special">;</span></pre>
<p>Assignment from other offset_ptr. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T2<span class="special">&gt;</span> offset_ptr&amp; <a name="id821386-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a><span class="special">&lt;</span> <span class="identifier">T2</span> <span class="special">&gt;</span> <span class="special">&amp;</span> pt<span class="special">)</span><span class="special">;</span></pre>
<p>Assignment from related offset_ptr. If pointers of pointee types are assignable, offset_ptrs will be assignable. Never throws. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id1484855"></a><h3>
<a name="id820667-bb"></a><code class="computeroutput">offset_ptr</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="identifier">pointer</span> <a name="id820670-bb"></a><span class="identifier">get</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Obtains raw pointer from offset. Never throws. </p>
</li>
<li class="listitem"><pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> <a name="id820682-bb"></a><span class="identifier">get_offset</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">pointer</span> <a name="id820690-bb"></a><span class="keyword">operator</span><span class="special">-&gt;</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Pointer-like -&gt; operator. It can return 0 pointer. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="id820702-bb"></a><span class="keyword">operator</span><span class="special">*</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Dereferencing operator, if it is a null offset_ptr behavior is undefined. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">reference</span> <a name="id820715-bb"></a><span class="keyword">operator</span><span class="special">[</span><span class="special">]</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> idx<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Indexing operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="id820732-bb"></a><span class="keyword">operator</span><span class="special">+</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> offset<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>offset_ptr + std::ptrdiff_t. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="id820750-bb"></a><span class="keyword">operator</span><span class="special">-</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> offset<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>offset_ptr - std::ptrdiff_t. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="id820769-bb"></a><span class="keyword">operator</span><span class="special">+=</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> offset<span class="special">)</span><span class="special">;</span></pre>
<p>offset_ptr += std::ptrdiff_t. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="id820789-bb"></a><span class="keyword">operator</span><span class="special">-=</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> offset<span class="special">)</span><span class="special">;</span></pre>
<p>offset_ptr -= std::ptrdiff_t. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="id820808-bb"></a><span class="keyword">operator</span><span class="special">++</span><span class="special">(</span><span class="keyword">void</span><span class="special">)</span><span class="special">;</span></pre>
<p>++offset_ptr. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="id820828-bb"></a><span class="keyword">operator</span><span class="special">++</span><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span></pre>
<p>offset_ptr++. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <span class="special">&amp;</span> <a name="id820846-bb"></a><span class="keyword">operator</span><span class="special">--</span><span class="special">(</span><span class="keyword">void</span><span class="special">)</span><span class="special">;</span></pre>
<p>--offset_ptr. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="offset_ptr.html" title="Class template offset_ptr">offset_ptr</a> <a name="id820865-bb"></a><span class="keyword">operator</span><span class="special">--</span><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span></pre>
<p>offset_ptr--. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="id820884-bb"></a><span class="keyword">operator</span> <span class="identifier">unspecified_bool_type</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>safe bool conversion operator. Never throws. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="id820896-bb"></a><span class="keyword">operator</span><span class="special">!</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Not operator. Not needed in theory, but improves portability. Never throws </p>
</li>
</ol></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2005 - 2010 Ion Gaztanaga<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
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>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="simple_seq_fit.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_interprocess_reference.html#header.boost.interprocess.offset_ptr_hpp"><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="operator___id821409.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>