gcc/libstdc++-v3/include/ext
Jonathan Wakely 3263fb9c6b Remove using-declarations that add std names to __gnu_cxx
These using-declarations appear to have been added for simplicity when
moving the non-standard extensions from namespace std to namespace
__gnu_cxx. Dumping all these names into namespace __gnu_cxx allows
unportable uses like __gnu_cxx::size_t and __gnu_cxx::pair, which serve
no useful purpose.

This patch removes most of the using-declarations from namespace scope,
then either qualifies names as needed or adds using-declarations at
block scope or typedefs at class scope.

	* include/backward/hashtable.h (size_t, ptrdiff_t)
	(forward_iterator_tag, input_iterator_tag, _Construct, _Destroy)
	(distance, vector, pair, __iterator_category): Remove
	using-declarations that add these names to namespace __gnu_cxx.
	* include/ext/bitmap_allocator.h (size_t, ptrdiff_t): Likewise.
	* include/ext/debug_allocator.h (size_t): Likewise.
	* include/ext/functional (size_t, unary_function, binary_function)
	(mem_fun1_t, const_mem_fun1_t, mem_fun1_ref_t, const_mem_fun1_ref_t):
	Likewise.
	* include/ext/malloc_allocator.h (size_t, ptrdiff_t): Likewise.
	* include/ext/memory (ptrdiff_t, pair, __iterator_category): Likewise.
	* include/ext/mt_allocator.h (size_t, ptrdiff_t): Likewise.
	* include/ext/new_allocator.h (size_t, ptrdiff_t): Likewise.
	* include/ext/numeric (iota): Fix outdated comment.
	* include/ext/pool_allocator.h (size_t, ptrdiff_t): Likewise.
	* include/ext/rb_tree (_Rb_tree, allocator): Likewise.
	* include/ext/rope (size_t, ptrdiff_t, allocator, _Destroy): Likewise.
	* include/ext/ropeimpl.h (size_t, printf, basic_ostream)
	(__throw_length_error, _Destroy, std::__uninitialized_fill_n_a):
	Likewise.
	* include/ext/slist (size_t, ptrdiff_t, _Construct, _Destroy)
	(allocator, __true_type, __false_type): Likewise.

From-SVN: r271807
2019-05-31 11:35:07 +01:00
..
pb_ds Adjust Doxygen processing of pb_ds containers 2019-05-02 16:44:46 +01:00
algorithm Update copyright years. 2019-01-01 13:31:55 +01:00
aligned_buffer.h Update copyright years. 2019-01-01 13:31:55 +01:00
alloc_traits.h Fix after P0600. 2019-01-21 11:47:30 +00:00
atomicity.h Update copyright years. 2019-01-01 13:31:55 +01:00
bitmap_allocator.h Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
cast.h Update copyright years. 2019-01-01 13:31:55 +01:00
cmath Update copyright years. 2019-01-01 13:31:55 +01:00
codecvt_specializations.h Update copyright years. 2019-01-01 13:31:55 +01:00
concurrence.h Update copyright years. 2019-01-01 13:31:55 +01:00
debug_allocator.h Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
enc_filebuf.h Update copyright years. 2019-01-01 13:31:55 +01:00
extptr_allocator.h Fix after P0600. 2019-01-21 11:47:30 +00:00
functional Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
iterator Update copyright years. 2019-01-01 13:31:55 +01:00
malloc_allocator.h Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
memory Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
mt_allocator.h Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
new_allocator.h Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
numeric Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
numeric_traits.h Avoid -Woverflow warning in __numeric_limits_integer 2019-05-03 20:13:31 +01:00
pod_char_traits.h Update copyright years. 2019-01-01 13:31:55 +01:00
pointer.h Update copyright years. 2019-01-01 13:31:55 +01:00
pool_allocator.h Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
random PR libstdc++/88066 use <> for includes not "" 2019-01-08 13:25:19 +00:00
random.tcc Update copyright years. 2019-01-01 13:31:55 +01:00
rb_tree Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
rc_string_base.h Update copyright years. 2019-01-01 13:31:55 +01:00
rope Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
ropeimpl.h Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
slist Remove using-declarations that add std names to __gnu_cxx 2019-05-31 11:35:07 +01:00
sso_string_base.h Update copyright years. 2019-01-01 13:31:55 +01:00
stdio_filebuf.h Update copyright years. 2019-01-01 13:31:55 +01:00
stdio_sync_filebuf.h Update copyright years. 2019-01-01 13:31:55 +01:00
string_conversions.h Update copyright years. 2019-01-01 13:31:55 +01:00
throw_allocator.h Fix after P0600. 2019-01-21 11:47:30 +00:00
type_traits.h Update copyright years. 2019-01-01 13:31:55 +01:00
typelist.h Disambiguate __gnu_cxx::append_ partial specialization 2019-02-22 01:15:58 +00:00
vstring.h Fix after P0600. 2019-01-21 11:47:30 +00:00
vstring.tcc Update copyright years. 2019-01-01 13:31:55 +01:00
vstring_fwd.h Update copyright years. 2019-01-01 13:31:55 +01:00
vstring_util.h Update copyright years. 2019-01-01 13:31:55 +01:00