Boost logo

Boost Users :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-08-24 11:05:57


"JOAQUIN LOPEZ MU?Z" <joaquin_at_[hidden]> wrote in message
news:1553a314f2df.14f2df1553a3_at_tid.es...
> > size_type erase( const key_type& x ) // nothrow
> > {
> > BOOST_ASSERT( !this->empty() );

Why the BOOST_ASSERT? Do you require that the container
be non-empty for erase to be callable? Am I missing something?

>>>>>>

Hm...I couldn't find anything on this in the standard. Can you locate the
description for map<K,V>::erase( const K&) ?

Thanks

-Thorsten


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net