• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>buffer_sequence_begin</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="../../boost_asio.html" title="Boost.Asio">
8<link rel="up" href="../reference.html" title="Reference">
9<link rel="prev" href="buffer_copy/overload2.html" title="buffer_copy (2 of 2 overloads)">
10<link rel="next" href="buffer_sequence_begin/overload1.html" title="buffer_sequence_begin (1 of 4 overloads)">
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="buffer_copy/overload2.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="buffer_sequence_begin/overload1.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="boost_asio.reference.buffer_sequence_begin"></a><a class="link" href="buffer_sequence_begin.html" title="buffer_sequence_begin">buffer_sequence_begin</a>
28</h3></div></div></div>
29<p>
30        <a class="indexterm" name="boost_asio.indexterm.buffer_sequence_begin"></a>
31The <code class="computeroutput">boost::asio::buffer_sequence_begin</code>
32        function returns an iterator pointing to the first element in a buffer sequence.
33      </p>
34<p>
35        Get an iterator to the first element in a buffer sequence.
36      </p>
37<pre class="programlisting">template&lt;
38    typename MutableBuffer&gt;
39const mutable_buffer * <a class="link" href="buffer_sequence_begin/overload1.html" title="buffer_sequence_begin (1 of 4 overloads)">buffer_sequence_begin</a>(
40    const MutableBuffer &amp; b,
41    typename enable_if&lt; is_convertible&lt; const MutableBuffer *, const mutable_buffer * &gt;::value &gt;::type *  = 0);
42  <span class="emphasis"><em>» <a class="link" href="buffer_sequence_begin/overload1.html" title="buffer_sequence_begin (1 of 4 overloads)">more...</a></em></span>
43
44template&lt;
45    typename ConstBuffer&gt;
46const const_buffer * <a class="link" href="buffer_sequence_begin/overload2.html" title="buffer_sequence_begin (2 of 4 overloads)">buffer_sequence_begin</a>(
47    const ConstBuffer &amp; b,
48    typename enable_if&lt; is_convertible&lt; const ConstBuffer *, const const_buffer * &gt;::value &gt;::type *  = 0);
49  <span class="emphasis"><em>» <a class="link" href="buffer_sequence_begin/overload2.html" title="buffer_sequence_begin (2 of 4 overloads)">more...</a></em></span>
50
51template&lt;
52    typename C&gt;
53auto <a class="link" href="buffer_sequence_begin/overload3.html" title="buffer_sequence_begin (3 of 4 overloads)">buffer_sequence_begin</a>(
54    C &amp; c,
55    typename enable_if&lt; !is_convertible&lt; const C *, const mutable_buffer * &gt;::value &amp;&amp;!is_convertible&lt; const C *, const const_buffer * &gt;::value &gt;::type *  = 0);
56  <span class="emphasis"><em>» <a class="link" href="buffer_sequence_begin/overload3.html" title="buffer_sequence_begin (3 of 4 overloads)">more...</a></em></span>
57
58template&lt;
59    typename C&gt;
60auto <a class="link" href="buffer_sequence_begin/overload4.html" title="buffer_sequence_begin (4 of 4 overloads)">buffer_sequence_begin</a>(
61    const C &amp; c,
62    typename enable_if&lt; !is_convertible&lt; const C *, const mutable_buffer * &gt;::value &amp;&amp;!is_convertible&lt; const C *, const const_buffer * &gt;::value &gt;::type *  = 0);
63  <span class="emphasis"><em>» <a class="link" href="buffer_sequence_begin/overload4.html" title="buffer_sequence_begin (4 of 4 overloads)">more...</a></em></span>
64</pre>
65<h5>
66<a name="boost_asio.reference.buffer_sequence_begin.h0"></a>
67        <span class="phrase"><a name="boost_asio.reference.buffer_sequence_begin.requirements"></a></span><a class="link" href="buffer_sequence_begin.html#boost_asio.reference.buffer_sequence_begin.requirements">Requirements</a>
68      </h5>
69<p>
70        <span class="emphasis"><em>Header: </em></span><code class="literal">boost/asio/buffer.hpp</code>
71      </p>
72<p>
73        <span class="emphasis"><em>Convenience header: </em></span><code class="literal">boost/asio.hpp</code>
74      </p>
75</div>
76<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
77<td align="left"></td>
78<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
79      Kohlhoff<p>
80        Distributed under the Boost Software License, Version 1.0. (See accompanying
81        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>)
82      </p>
83</div></td>
84</tr></table>
85<hr>
86<div class="spirit-nav">
87<a accesskey="p" href="buffer_copy/overload2.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="buffer_sequence_begin/overload1.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
88</div>
89</body>
90</html>
91