gcc/libstdc++-v3/include
François Dumont 76225d2ca7 stl_vector.h (push_back(const value_type&)): Forward to _M_realloc_insert.
2016-07-11  François Dumont  <fdumont@gcc.gnu.org>

	* include/bits/stl_vector.h (push_back(const value_type&)): Forward
	to _M_realloc_insert.
	(insert(const_iterator, value_type&&)): Forward to _M_insert_rval.
	(_M_realloc_insert): Declare new function.
	(_M_emplace_back_aux): Remove definition.
	* include/bits/vector.tcc (emplace_back(_Args...)):
	Use _M_realloc_insert.
	(insert(const_iterator, const value_type&)): Likewise.
	(_M_insert_rval, _M_emplace_aux): Likewise.
	(_M_emplace_back_aux): Remove declaration.
	(_M_realloc_insert): Define.
	* testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc:
	Adjust expected results for emplacing an lvalue with reallocation.

From-SVN: r238226
2016-07-11 20:17:56 +00:00
..
backward Update copyright years. 2016-01-04 15:30:50 +01:00
bits stl_vector.h (push_back(const value_type&)): Forward to _M_realloc_insert. 2016-07-11 20:17:56 +00:00
c Update copyright years. 2016-01-04 15:30:50 +01:00
c_compatibility Don't define guard macros when doing #include_next in math.h and stdlib.h 2016-02-01 11:13:40 +00:00
c_global re PR libstdc++/69881 (with gcc-6 of today building gcc-4.9 fails) 2016-02-23 15:57:09 +00:00
c_std Update copyright years. 2016-01-04 15:30:50 +01:00
debug array (array<>::swap): Fix noexcept qualificaton for zero-size array. 2016-06-23 20:21:47 +00:00
decimal Update copyright years. 2016-01-04 15:30:50 +01:00
experimental Implement LWG 2451, optional<T> should 'forward' T's implicit conversions. 2016-07-06 16:26:10 +03:00
ext Avoid -Wsign-compare warnings in std::to_string() 2016-04-18 16:43:50 +01:00
parallel Update copyright years. 2016-01-04 15:30:50 +01:00
precompiled Implement TR29124 C++ special Math Functions. 2016-01-14 18:12:43 +00:00
profile Update copyright years. 2016-01-04 15:30:50 +01:00
std Implement std::optional. 2016-07-10 20:44:21 +03:00
tr1 re PR libstdc++/71181 (Reserving in unordered_map doesn't reserve enough) 2016-06-20 20:04:25 +00:00
tr2 Update copyright years. 2016-01-04 15:30:50 +01:00
Makefile.am Implement std::optional. 2016-07-10 20:44:21 +03:00
Makefile.in Implement std::optional. 2016-07-10 20:44:21 +03:00