KTL
Loading...
Searching...
No Matches
ktl::ipair_value< K, V > Class Template Reference

Pair of an index and value from an iterator. More...

#include <ipair.h>

Public Member Functions

template<typename A , typename B >
 ipair_value (A &&key, B &&value) noexcept(std::is_nothrow_constructible_v< K, A > &&std::is_nothrow_constructible_v< V, B >)
 
ipair_valueoperator-> () noexcept
 
const ipair_valueoperator-> () const noexcept
 

Public Attributes

KTL_EMPTY_BASEfirst
 
KTL_EMPTY_BASEsecond
 

Detailed Description

template<typename K, typename V>
class ktl::ipair_value< K, V >

Pair of an index and value from an iterator.

Template Parameters
KThe index type
VThe value type

Constructor & Destructor Documentation

◆ ipair_value()

template<typename K , typename V >
template<typename A , typename B >
ktl::ipair_value< K, V >::ipair_value ( A &&  key,
B &&  value 
)
inlinenoexcept

Member Function Documentation

◆ operator->() [1/2]

template<typename K , typename V >
const ipair_value * ktl::ipair_value< K, V >::operator-> ( ) const
inlinenoexcept

◆ operator->() [2/2]

template<typename K , typename V >
ipair_value * ktl::ipair_value< K, V >::operator-> ( )
inlinenoexcept

Member Data Documentation

◆ first

template<typename K , typename V >
KTL_EMPTY_BASE K ktl::ipair_value< K, V >::first

◆ second

template<typename K , typename V >
KTL_EMPTY_BASE V ktl::ipair_value< K, V >::second

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