26 Containers library [containers]

26.2 Container requirements [container.requirements]

26.2.4 Node handles [container.node]

26.2.4.4 node_­handle observers [container.node.observers]

value_type& value() const;

Requires: empty() == false.

Returns: Ссылка на value_­type подобъект в container_­node_­type объекте, на который указывает ptr_­.

Throws: Ничего такого.

key_type& key() const;

Requires: empty() == false.

Returns: Неконстантная ссылка на key_­type член value_­type подобъекта в container_­node_­type объекте, на который указывает ptr_­.

Throws: Ничего такого.

Remarks: Разрешено изменение ключа с помощью возвращенной ссылки.

mapped_type& mapped() const;

Requires: empty() == false.

Returns: Ссылка на mapped_­type член value_­type подобъекта в container_­node_­type объекте, на который указывает ptr_­.

Throws: Ничего такого.

allocator_type get_allocator() const;

Requires: empty() == false.

Returns: *alloc_­.

Throws: Ничего такого.

explicit operator bool() const noexcept;

Returns: ptr_­ != nullptr.

bool empty() const noexcept;

Returns: ptr_­ == nullptr.