mt_allocator.h (__mt_alloc<>::deallocate): Consistently update __bin._M_free[0].
authorPaolo Carlini <pcarlini@suse.de>
Sun, 16 May 2004 17:01:40 +0000 (17:01 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 16 May 2004 17:01:40 +0000 (17:01 +0000)
commit08f7c2eb78c512fc41d363db476d9912a082ec5e
treec76fe30a15affefc1d7002c578e700a73621d44c
parentd464f8e99ef16ef8eb26f285e54a2d5ce6024c64
mt_allocator.h (__mt_alloc<>::deallocate): Consistently update __bin._M_free[0].

2004-05-16  Paolo Carlini  <pcarlini@suse.de>

* include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
Consistently update __bin._M_free[0].
(__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
__bin._M_free[0] to simplify the while loop (i.e., the number
of iterations becomes known at the outset).

From-SVN: r81916
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/mt_allocator.h