Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
NCollection_ItemsView::KeyValueRef< TheKeyType, TheValueType, IsConst > Struct Template Reference

Key-value pair reference for structured binding support. Enables: for (auto [key, value] : map.Items()) 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(autoget () const noexcept
 

Data Fields

const TheKeyTypeKey
 
ValueRef Value
 

Detailed Description

template<class TheKeyType, class TheValueType, bool IsConst>
struct NCollection_ItemsView::KeyValueRef< TheKeyType, TheValueType, IsConst >

Key-value pair reference for structured binding support. Enables: for (auto [key, value] : map.Items())

Template Parameters
TheKeyTypethe key type
TheValueTypethe value type
IsConstif true, value is const reference; if false, mutable reference

Member Typedef Documentation

◆ ValueRef

Member Function Documentation

◆ get()

template<class TheKeyType , class TheValueType , bool IsConst>
template<std::size_t I>
decltype(auto) NCollection_ItemsView::KeyValueRef< TheKeyType, TheValueType, IsConst >::get ( ) const
inlinenoexcept

Field Documentation

◆ Key

◆ Value


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