Skip to content
Snippets Groups Projects
Commit ec0a68b9 authored by Huanghui Nie's avatar Huanghui Nie Committed by François Dumont
Browse files

libstdc++: [_Hashtable] Remove useless check for _M_before_begin node


When removing the first node of a bucket it is useless to check if this bucket
is the one containing the _M_before_begin node. The bucket before-begin node is
already transfered to the next pointed-to bucket regardeless if it is the container
before-begin node.

libstdc++-v3/ChangeLog:

	* include/bits/hashtable.h (_Hahstable<>::_M_remove_bucket_begin): Remove
	_M_before_begin check and cleanup implementation.

Co-authored-by: default avatarThéo Papadopoulo <papadopoulo@gmail.com>
parent 7f7d9c52
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment