Changeset de53138 in mainline for uspace/lib/cpp/include/impl
- Timestamp:
- 2018-07-05T21:41:21Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c71c171
- Parents:
- 6d8a63a
- git-author:
- Dzejrou <dzejrou@…> (2018-04-20 00:11:54)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
- Location:
- uspace/lib/cpp/include/impl
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/chrono.hpp
r6d8a63a rde53138 611 611 static time_point now() 612 612 { 613 std::timeval tv{};614 std::gettimeofday(&tv, nullptr);613 hel::timeval tv{}; 614 hel::gettimeofday(&tv, nullptr); 615 615 616 616 rep time = tv.tv_usec; … … 654 654 static time_point now() 655 655 { 656 std::timeval tv{};657 std::getuptime(&tv);656 hel::timeval tv{}; 657 hel::getuptime(&tv); 658 658 659 659 rep time = tv.tv_usec; -
uspace/lib/cpp/include/impl/ios.hpp
r6d8a63a rde53138 41 41 { 42 42 using streamoff = long long; 43 using streamsize = ssize_t;43 using streamsize = hel::ssize_t; 44 44 45 45 /** -
uspace/lib/cpp/include/impl/iterator.hpp
r6d8a63a rde53138 530 530 > 531 531 { 532 using type = remove_reference_t<typename iterator_traits<Iterator>::reference> ;532 using type = remove_reference_t<typename iterator_traits<Iterator>::reference>&&; 533 533 }; 534 534 } -
uspace/lib/cpp/include/impl/stack.hpp
r6d8a63a rde53138 48 48 using container_type = Container; 49 49 using value_type = typename container_type::value_type; 50 using reference = typename con stainer_type::reference;50 using reference = typename container_type::reference; 51 51 using const_reference = typename container_type::const_reference; 52 52 using size_type = typename container_type::size_type; … … 132 132 133 133 void swap(stack& other) 134 noexcept(noexcept(swap(c, other.c)))134 /* noexcept(noexcept(swap(c, other.c))) */ 135 135 { 136 136 std::swap(c, other.c); -
uspace/lib/cpp/include/impl/string.hpp
r6d8a63a rde53138 44 44 namespace std 45 45 { 46 47 46 /** 48 47 * 21.2, char_traits: … … 82 81 static int compare(const char_type* s1, const char_type* s2, size_t n) 83 82 { 84 return std::str_lcmp(s1, s2, n);83 return hel::str_lcmp(s1, s2, n); 85 84 } 86 85 87 86 static size_t length(const char_type* s) 88 87 { 89 return std::str_size(s);88 return hel::str_size(s); 90 89 } 91 90 … … 354 353 { 355 354 // TODO: This function does not exits... 356 //return std::wstr_lcmp(s1, s2, n);355 //return hel::wstr_lcmp(s1, s2, n); 357 356 return 0; 358 357 } … … 360 359 static size_t length(const char_type* s) 361 360 { 362 return std::wstr_size(s);361 return hel::wstr_size(s); 363 362 } 364 363 … … 448 447 /** 449 448 * 21.4.2, construct/copy/destroy: 449 * TODO: tagged constructor that moves the char* 450 * and use that with asprintf in to_string 450 451 */ 452 451 453 basic_string() noexcept 452 454 : basic_string(allocator_type{}) -
uspace/lib/cpp/include/impl/thread.hpp
r6d8a63a rde53138 248 248 { /* DUMMY BODY */ } 249 249 250 fid_t id_; // For testing atm public.251 250 private: 252 id(fid_t id) 251 aux::thread_t id_; 252 253 id(aux::thread_t id) 253 254 : id_{id} 254 255 { /* DUMMY BODY */ } -
uspace/lib/cpp/include/impl/utility.hpp
r6d8a63a rde53138 30 30 #define LIBCPP_UTILITY 31 31 32 #include <cstdint> 32 33 #include <type_traits> 33 34 … … 78 79 constexpr T&& forward(remove_reference_t<T>&& t) noexcept 79 80 { 80 // TODO: check if t is lvalue reference, if it is, the program81 // is ill-formed according to the standard82 81 return static_cast<T&&>(t); 83 82 } … … 236 235 namespace aux 237 236 { 238 template<class T, std::uintmax_t N>237 template<class T, uintmax_t N> 239 238 struct make_integer_sequence 240 239 {
Note:
See TracChangeset
for help on using the changeset viewer.