Changeset 1621f91 in mainline
- Timestamp:
- 2019-07-01T15:51:01Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fda6dd4
- Parents:
- 8660ad0
- Location:
- uspace/lib/cpp/include/__bits/thread
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/thread/future_common.hpp
r8660ad0 r1621f91 105 105 106 106 template<class T> 107 struct future_return: aux::type_is< const T&>107 struct future_return: aux::type_is<T> 108 108 { /* DUMMY BODY */ }; 109 109 … … 112 112 { /* DUMMY BODY */ }; 113 113 114 template<> 115 struct future_return<void>: aux::type_is<void> 114 template<class T> 115 using future_return_t = typename future_return<T>::type; 116 117 template<class T> 118 struct future_return_shared: aux::type_is<const T&> 116 119 { /* DUMMY BODY */ }; 117 120 118 121 template<class T> 119 using future_return_t = typename future_return<T>::type; 122 struct future_return_shared<T&>: aux::type_is<T&> 123 { /* DUMMY BODY */ }; 124 125 template<> 126 struct future_return_shared<void>: aux::type_is<void> 127 { /* DUMMY BODY */ }; 128 129 template<class T> 130 using future_return_shared_t = typename future_return_shared<T>::type; 120 131 } 121 132 } -
uspace/lib/cpp/include/__bits/thread/shared_future.hpp
r8660ad0 r1621f91 70 70 shared_future& operator=(shared_future&&) noexcept = default; 71 71 72 aux::future_return_ t<R> get() const72 aux::future_return_shared_t<R> get() const 73 73 { 74 74 assert(this->state_);
Note:
See TracChangeset
for help on using the changeset viewer.