@@ -30,28 +30,28 @@ private:
3030
3131public:
3232 // [container.node.cons], constructors, copy, and assignment
33- constexpr node-handle() noexcept : ptr_(), alloc_() {} // constexpr since C++26
34- node-handle(node-handle&&) noexcept; // constexpr since C++26
35- node-handle& operator=(node-handle&&); // constexpr since C++26
33+ constexpr node-handle() noexcept : ptr_(), alloc_() {}
34+ constexpr node-handle(node-handle&&) noexcept; // constexpr since C++26
35+ constexpr node-handle& operator=(node-handle&&); // constexpr since C++26
3636
3737 // [container.node.dtor], destructor
38- ~node-handle(); // constexpr since C++26
38+ constexpr ~node-handle(); // constexpr since C++26
3939
4040 // [container.node.observers], observers
4141 value_type& value() const; // not present for map containers
4242 key_type& key() const; // not present for set containers
43- mapped_type& mapped() const; // not present for set containers // constexpr since C++26
43+ constexpr mapped_type& mapped() const; // not present for set containers, constexpr since C++26
4444
45- allocator_type get_allocator() const; // constexpr since C++26
46- explicit operator bool() const noexcept; // constexpr since C++26
47- [[nodiscard]] bool empty() const noexcept; // nodiscard since C++20 // constexpr since C++26
45+ constexpr allocator_type get_allocator() const; // constexpr since C++26
46+ constexpr explicit operator bool() const noexcept; // constexpr since C++26
47+ [[nodiscard]] constexpr bool empty() const noexcept; // nodiscard since C++20, constexpr since C++26
4848
4949 // [container.node.modifiers], modifiers
50- void swap(node-handle&)
50+ constexpr void swap(node-handle&)
5151 noexcept(ator_traits::propagate_on_container_swap::value ||
5252 ator_traits::is_always_equal::value); // constexpr since C++26
5353
54- friend void swap(node-handle& x, node-handle& y) noexcept(noexcept(x.swap(y))) {
54+ constexpr friend void swap(node-handle& x, node-handle& y) noexcept(noexcept(x.swap(y))) {
5555 x.swap(y);
5656 } // constexpr since C++26
5757};
0 commit comments