 that is only intended to prepare data to be used in the assertion.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code>void MyContainer::erase(iterator i)
{
// Some sanity checks, data must be ordered
#ifndef BOOST_ASSERT_IS_VOID

    if(i != c.begin()) {
        iterator prev = i;
        --prev;
        BOOST_ASSERT(*prev &lt; *i);
    }
    else if(i != c.end()) {
        iterator next = i;
        ++next;
        BOOST_ASSERT(*i &lt; *next);
    }

#endif

    this-