File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 9285
9285
void push(const value_type& x) { c.push_back(x); }
9286
9286
void push(value_type&& x) { c.push_back(std::move(x)); }
9287
9287
template <class... Args>
9288
- reference emplace(Args&&... args) { return c.emplace_back(std::forward<Args>(args)...); }
9288
+ decltype(auto) emplace(Args&&... args)
9289
+ { return c.emplace_back(std::forward<Args>(args)...); }
9289
9290
void pop() { c.pop_front(); }
9290
9291
void swap(queue& q) noexcept(is_nothrow_swappable_v<Container>)
9291
9292
{ using std::swap; swap(c, q.c); }
9841
9842
void push(const value_type& x) { c.push_back(x); }
9842
9843
void push(value_type&& x) { c.push_back(std::move(x)); }
9843
9844
template <class... Args>
9844
- reference emplace(Args&&... args) { return c.emplace_back(std::forward<Args>(args)...); }
9845
+ decltype(auto) emplace(Args&&... args)
9846
+ { return c.emplace_back(std::forward<Args>(args)...); }
9845
9847
void pop() { c.pop_back(); }
9846
9848
void swap(stack& s) noexcept(is_nothrow_swappable_v<Container>)
9847
9849
{ using std::swap; swap(c, s.c); }
You can’t perform that action at this time.
0 commit comments