Changeset f4a42661 in mainline for uspace/lib/cpp/include/__bits
- Timestamp:
- 2023-10-22T14:04:49Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 590cb6d2
- Parents:
- b2cbc0b (diff), c63c2bb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/cpp/include/__bits
- Files:
-
- 3 edited
-
adt/hash_table.hpp (modified) (1 diff)
-
adt/rbtree.hpp (modified) (1 diff)
-
string/string.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/adt/hash_table.hpp
rb2cbc0b rf4a42661 252 252 void swap(hash_table& other) 253 253 noexcept(allocator_traits<allocator_type>::is_always_equal::value && 254 noexcept(s wap(declval<Hasher&>(), declval<Hasher&>())) &&255 noexcept(s wap(declval<KeyEq&>(), declval<KeyEq&>())))254 noexcept(std::swap(declval<Hasher&>(), declval<Hasher&>())) && 255 noexcept(std::swap(declval<KeyEq&>(), declval<KeyEq&>()))) 256 256 { 257 257 std::swap(table_, other.table_); -
uspace/lib/cpp/include/__bits/adt/rbtree.hpp
rb2cbc0b rf4a42661 233 233 void swap(rbtree& other) 234 234 noexcept(allocator_traits<allocator_type>::is_always_equal::value && 235 noexcept(s wap(declval<KeyComp&>(), declval<KeyComp&>())))235 noexcept(std::swap(declval<KeyComp&>(), declval<KeyComp&>()))) 236 236 { 237 237 std::swap(root_, other.root_); -
uspace/lib/cpp/include/__bits/string/string.hpp
rb2cbc0b rf4a42661 521 521 522 522 basic_string(size_type n, value_type c, const allocator_type& alloc = allocator_type{}) 523 : data_{}, size_{n}, capacity_{n }, allocator_{alloc}523 : data_{}, size_{n}, capacity_{n + 1}, allocator_{alloc} 524 524 { 525 525 data_ = allocator_.allocate(capacity_); … … 908 908 { 909 909 // TODO: if (n > max_size()) throw length_error. 910 resize_without_copy_(n );910 resize_without_copy_(n + 1); 911 911 traits_type::copy(begin(), str, n); 912 912 size_ = n;
Note:
See TracChangeset
for help on using the changeset viewer.
