Changeset 3adbbda in mainline
- Timestamp:
- 2018-07-05T21:41:24Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8349334
- Parents:
- 58ff673
- git-author:
- Dzejrou <dzejrou@…> (2018-05-15 17:59:36)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/stack.hpp
r58ff673 r3adbbda 1 1 /* 2 * Copyright (c) 201 7Jaroslav Jindrak2 * Copyright (c) 2018 Jaroslav Jindrak 3 3 * All rights reserved. 4 4 * … … 30 30 #define LIBCPP_STACK 31 31 32 #include <deque> 32 33 #include <initializer_list> 33 34 #include <utility> 34 #include <vector>35 35 36 36 namespace std … … 41 41 */ 42 42 43 // TODO: the default container should be deque<T> 44 template<class T, class Container = vector<T>> 43 template<class T, class Container = deque<T>> 45 44 class stack 46 45 { … … 131 130 } 132 131 133 void swap(stack& other) 134 /* noexcept(noexcept(swap(c, other.c))) */132 void swap(stack& other) // We cannot use c in the noexcept :/ 133 noexcept(noexcept(declval<container_type>().swap(declval<container_type&>()))) 135 134 { 136 135 std::swap(c, other.c);
Note:
See TracChangeset
for help on using the changeset viewer.