mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 16:23:56 +08:00
std_sstream.h (str()): Tidy.
2003-05-02 Paolo Carlini <pcarlini@unitus.it> * include/std/std_sstream.h (str()): Tidy. From-SVN: r66402
This commit is contained in:
parent
07a0a04486
commit
4571fbb1ec
@ -1,3 +1,7 @@
|
||||
2003-05-02 Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
* include/std/std_sstream.h (str()): Tidy.
|
||||
|
||||
2003-05-02 Nathan Myers <ncm@cantrip.org>
|
||||
Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
|
@ -133,15 +133,11 @@ namespace std
|
||||
__string_type
|
||||
str() const
|
||||
{
|
||||
const bool __testout = this->_M_mode & ios_base::out;
|
||||
__string_type __ret = _M_string;
|
||||
if (this->_M_mode & ios_base::out)
|
||||
{
|
||||
const __size_type __nlen = this->_M_out_lim
|
||||
- this->_M_out_beg;
|
||||
if (__nlen)
|
||||
__ret = __string_type(this->_M_out_beg,
|
||||
this->_M_out_beg + __nlen);
|
||||
}
|
||||
if (__testout && this->_M_out_beg < this->_M_out_lim)
|
||||
__ret = __string_type(this->_M_out_beg,
|
||||
this->_M_out_lim);
|
||||
return __ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user