stl_pair.h (pair<>::pair<>(_U1&&, _Arg0&&, _Args&&...)): Add.

2007-11-11  Howard Hinnant  <hhinnant@apple.com>

	* include/bits/stl_pair.h (pair<>::pair<>(_U1&&, _Arg0&&,
	_Args&&...)): Add.

From-SVN: r130085
This commit is contained in:
Howard Hinnant 2007-11-11 15:56:09 +00:00 committed by Paolo Carlini
parent 5a269cfd7e
commit c31ab059b6
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-11-11 Howard Hinnant <hhinnant@apple.com>
* include/bits/stl_pair.h (pair<>::pair<>(_U1&&, _Arg0&&,
_Args&&...)): Add.
2007-11-11 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_list.h (list<>::_M_create_node<>(_Args&&...),

View File

@ -111,6 +111,13 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
: first(std::move(__p.first)),
second(std::move(__p.second)) { }
// http://gcc.gnu.org/ml/libstdc++/2007-08/msg00052.html
template<class _U1, class _Arg0, class... _Args>
pair(_U1&& __x, _Arg0&& __arg0, _Args&&... __args)
: first(std::forward<_U1>(__x)),
second(std::forward<_Arg0>(__arg0),
std::forward<_Args>(__args)...) { }
pair&
operator=(pair&& __p)
{