summaryrefslogtreecommitdiffstats
path: root/libcxx/include/queue
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-07-21 03:20:17 +0000
committerEric Fiselier <eric@efcs.ca>2016-07-21 03:20:17 +0000
commit0e411641a338b0effbdcbcd6f0772a0663729afd (patch)
tree0c0f13d524a1dede6b8bf225a6110a9bfc19efd9 /libcxx/include/queue
parentfa7c6f0d84bc1148eb1d17a18ad0b80d5521ba16 (diff)
downloadbcm5719-llvm-0e411641a338b0effbdcbcd6f0772a0663729afd.tar.gz
bcm5719-llvm-0e411641a338b0effbdcbcd6f0772a0663729afd.zip
Implement P0084r2. Changing emplace return types.
llvm-svn: 276230
Diffstat (limited to 'libcxx/include/queue')
-rw-r--r--libcxx/include/queue6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/queue b/libcxx/include/queue
index c657b52f803..01247a29da2 100644
--- a/libcxx/include/queue
+++ b/libcxx/include/queue
@@ -63,7 +63,7 @@ public:
void push(const value_type& v);
void push(value_type&& v);
- template <class... Args> void emplace(Args&&... args);
+ template <class... Args> reference emplace(Args&&... args);
void pop();
void swap(queue& q) noexcept(is_nothrow_swappable_v<Container>)
@@ -292,8 +292,8 @@ public:
#ifndef _LIBCPP_HAS_NO_VARIADICS
template <class... _Args>
_LIBCPP_INLINE_VISIBILITY
- void emplace(_Args&&... __args)
- {c.emplace_back(_VSTD::forward<_Args>(__args)...);}
+ reference emplace(_Args&&... __args)
+ { return c.emplace_back(_VSTD::forward<_Args>(__args)...);}
#endif // _LIBCPP_HAS_NO_VARIADICS
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
_LIBCPP_INLINE_VISIBILITY
OpenPOWER on IntegriCloud