Files
2025-10-25 03:02:53 +03:00

3.4 KiB

[container.node.observers]

23 Containers library [containers]

23.2 Requirements [container.requirements]

23.2.5 Node handles [container.node]

23.2.5.4 Observers [container.node.observers]

🔗

constexpr value_type& value() const;

1

#

Preconditions: empty() == false.

2

#

Returns: A reference to the value_type subobject in thecontainer_node_type object pointed to by ptr_.

3

#

Throws: Nothing.

🔗

key_type& key() const;

4

#

Preconditions: empty() == false.

5

#

Returns: A non-const reference to the key_type member of thevalue_type subobject in the container_node_type object pointed to by ptr_.

6

#

Throws: Nothing.

7

#

Remarks: Modifying the key through the returned reference is permitted.

🔗

constexpr mapped_type& mapped() const;

8

#

Preconditions: empty() == false.

9

#

Returns: A reference to the mapped_type member of thevalue_type subobject in the container_node_type object pointed to by ptr_.

10

#

Throws: Nothing.

🔗

constexpr allocator_type get_allocator() const;

11

#

Preconditions: empty() == false.

12

#

Returns: *alloc_.

13

#

Throws: Nothing.

🔗

constexpr explicit operator bool() const noexcept;

14

#

Returns: ptr_ != nullptr.

🔗

constexpr bool empty() const noexcept;

15

#

Returns: ptr_ == nullptr.