• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>insert(ConvertibleOrRange const &amp;)</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="Chapter 1. Geometry">
8<link rel="up" href="../boost__geometry__index__rtree.html" title="boost::geometry::index::rtree">
9<link rel="prev" href="insert_iterator__iterator_.html" title="insert(Iterator, Iterator)">
10<link rel="next" href="remove_value_type_const___.html" title="remove(value_type const &amp;)">
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="insert_iterator__iterator_.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__geometry__index__rtree.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="remove_value_type_const___.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h5 class="title">
27<a name="geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___"></a><a name="classboost_1_1geometry_1_1index_1_1rtree_1a5db294b14ebf1319edcfc92e78c8167e"></a><a class="link" href="insert_convertibleorrange_const___.html" title="insert(ConvertibleOrRange const &amp;)">insert(ConvertibleOrRange
28          const &amp;)</a>
29</h5></div></div></div>
30<p>
31            <a class="indexterm" name="idm45635676160480"></a>
32Insert a value created using convertible object or a range of values
33            to the index.
34          </p>
35<h6>
36<a name="geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___.h0"></a>
37            <span class="phrase"><a name="geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___.synopsis"></a></span><a class="link" href="insert_convertibleorrange_const___.html#geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___.synopsis">Synopsis</a>
38          </h6>
39<pre class="programlisting"><code class="computeroutput"><span class="keyword">template</span><span class="special">&lt;</span></code><code class="computeroutput"><span class="keyword">typename</span> <span class="identifier">ConvertibleOrRange</span></code><code class="computeroutput"><span class="special">&gt;</span></code>
40<code class="computeroutput"><span class="keyword">void</span></code> <code class="computeroutput"><span class="identifier">insert</span></code><code class="computeroutput"><span class="special">(</span></code><code class="computeroutput"><span class="identifier">ConvertibleOrRange</span> <span class="keyword">const</span> <span class="special">&amp;</span></code> <code class="computeroutput"><span class="identifier">conv_or_rng</span></code><code class="computeroutput"><span class="special">)</span></code>
41</pre>
42<h6>
43<a name="geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___.h1"></a>
44            <span class="phrase"><a name="geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___.parameter_s_"></a></span><a class="link" href="insert_convertibleorrange_const___.html#geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___.parameter_s_">Parameter(s)</a>
45          </h6>
46<div class="informaltable"><table class="table">
47<colgroup>
48<col>
49<col>
50<col>
51</colgroup>
52<thead><tr>
53<th>
54                    <p>
55                      Type
56                    </p>
57                  </th>
58<th>
59                    <p>
60                      Name
61                    </p>
62                  </th>
63<th>
64                    <p>
65                      Description
66                    </p>
67                  </th>
68</tr></thead>
69<tbody><tr>
70<td>
71                    <p>
72                      <code class="computeroutput"><span class="identifier">ConvertibleOrRange</span>
73                      <span class="keyword">const</span> <span class="special">&amp;</span></code>
74                    </p>
75                  </td>
76<td>
77                    <p>
78                      <code class="computeroutput"><span class="identifier">conv_or_rng</span></code>
79                    </p>
80                  </td>
81<td>
82                    <p>
83                      An object of type convertible to value_type or a range of values.
84                    </p>
85                  </td>
86</tr></tbody>
87</table></div>
88<h6>
89<a name="geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___.h2"></a>
90            <span class="phrase"><a name="geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___.throws"></a></span><a class="link" href="insert_convertibleorrange_const___.html#geometry.reference.spatial_indexes.boost__geometry__index__rtree.insert_convertibleorrange_const___.throws">Throws</a>
91          </h6>
92<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
93<li class="listitem">
94                If Value copy constructor or copy assignment throws.
95              </li>
96<li class="listitem">
97                If allocation throws or returns invalid value.
98              </li>
99</ul></div>
100<div class="warning"><table border="0" summary="Warning">
101<tr>
102<td rowspan="2" align="center" valign="top" width="25"><img alt="[Warning]" src="../../../../../../../../doc/src/images/warning.png"></td>
103<th align="left">Warning</th>
104</tr>
105<tr><td align="left" valign="top"><p>
106              This operation only guarantees that there will be no memory leaks.
107              After an exception is thrown the R-tree may be left in an inconsistent
108              state, elements must not be inserted or removed. Other operations are
109              allowed however some of them may return invalid data.
110            </p></td></tr>
111</table></div>
112</div>
113<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
114<td align="left"></td>
115<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam
116      Wulkiewicz, Oracle and/or its affiliates<p>
117        Distributed under the Boost Software License, Version 1.0. (See accompanying
118        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>)
119      </p>
120</div></td>
121</tr></table>
122<hr>
123<div class="spirit-nav">
124<a accesskey="p" href="insert_iterator__iterator_.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost__geometry__index__rtree.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="remove_value_type_const___.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
125</div>
126</body>
127</html>
128