diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-07-21 03:20:17 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-07-21 03:20:17 +0000 |
| commit | 0e411641a338b0effbdcbcd6f0772a0663729afd (patch) | |
| tree | 0c0f13d524a1dede6b8bf225a6110a9bfc19efd9 /libcxx/include/queue | |
| parent | fa7c6f0d84bc1148eb1d17a18ad0b80d5521ba16 (diff) | |
| download | bcm5719-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/queue | 6 |
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 |

