Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
NCollection_ItemsView::KeyIndexRef< TheKeyType > Struct Template Reference

Key-index pair reference for structured binding support (key-only indexed maps). Enables: for (auto [key, index] : map.IndexedItems()) More...

#include <NCollection_ItemsView.hxx>

Public Member Functions

template<std::size_t I>
decltype(auto) get () const noexcept

Data Fields

const TheKeyType & Key
int Index

Detailed Description

template<class TheKeyType>
struct NCollection_ItemsView::KeyIndexRef< TheKeyType >

Key-index pair reference for structured binding support (key-only indexed maps). Enables: for (auto [key, index] : map.IndexedItems())

Template Parameters
TheKeyTypethe key type

Member Function Documentation

◆ get()

template<class TheKeyType>
template<std::size_t I>
decltype(auto) NCollection_ItemsView::KeyIndexRef< TheKeyType >::get ( ) const
inlinenoexcept

Field Documentation

◆ Index

template<class TheKeyType>
int NCollection_ItemsView::KeyIndexRef< TheKeyType >::Index

◆ Key

template<class TheKeyType>
const TheKeyType& NCollection_ItemsView::KeyIndexRef< TheKeyType >::Key

The documentation for this struct was generated from the following file: