![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Key-value-index tuple reference for structured binding support. Enables: for (auto [key, value, index] : map.IndexedItems()) More...
#include <NCollection_ItemsView.hxx>
Public Types | |
| using | ValueRef = std::conditional_t<IsConst, const TheValueType&, TheValueType&> |
Public Member Functions | |
| template<std::size_t I> | |
| decltype(auto) | get () const noexcept |
Data Fields | |
| const TheKeyType & | Key |
| ValueRef | Value |
| int | Index |
Key-value-index tuple reference for structured binding support. Enables: for (auto [key, value, index] : map.IndexedItems())
| TheKeyType | the key type |
| TheValueType | the value type |
| IsConst | if true, value is const reference; if false, mutable reference |
| using NCollection_ItemsView::KeyValueIndexRef< TheKeyType, TheValueType, IsConst >::ValueRef = std::conditional_t<IsConst, const TheValueType&, TheValueType&> |
|
inlinenoexcept |
| const TheKeyType& NCollection_ItemsView::KeyValueIndexRef< TheKeyType, TheValueType, IsConst >::Key |