<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>basic_streambuf::overflow</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../basic_streambuf.html" title="basic_streambuf">
<link rel="prev" href="mutable_buffers_type.html" title="basic_streambuf::mutable_buffers_type">
<link rel="next" href="prepare.html" title="basic_streambuf::prepare">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="mutable_buffers_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_streambuf.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="prepare.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.basic_streambuf.overflow"></a><a class="link" href="overflow.html" title="basic_streambuf::overflow">basic_streambuf::overflow</a>
</h4></div></div></div>
<p>
          <a class="indexterm" name="idp120055712"></a> 
Override std::streambuf behaviour.
        </p>
<pre class="programlisting"><span class="identifier">int_type</span> <span class="identifier">overflow</span><span class="special">(</span>
    <span class="identifier">int_type</span> <span class="identifier">c</span><span class="special">);</span>
</pre>
<p>
          Behaves according to the specification of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">streambuf</span><span class="special">::</span><span class="identifier">overflow</span><span class="special">()</span></code>, with the specialisation that <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">length_error</span></code> is thrown if appending the
          character to the input sequence would require the condition <code class="computeroutput"><span class="identifier">size</span><span class="special">()</span> <span class="special">&gt;</span> <span class="identifier">max_size</span><span class="special">()</span></code> to be true.
        </p>
</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; 2003-2014 Christopher M. Kohlhoff<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="mutable_buffers_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_streambuf.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="prepare.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
