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:
parent
5a269cfd7e
commit
c31ab059b6
|
@ -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&&...),
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue