Tuple-like proxy for an immutable first value and callback-backed second value. More...
#include <StormByte/safe/pair.hxx>

Public Types | |
| using | value_type = Pair<First, Second> |
| Copied entry value type. | |
Public Member Functions | |
| PairReference (const First &firstValue, const Second &secondValue, SecondReference secondReference) | |
| Bind the proxy to copied values and a mutable second-value proxy. | |
| operator const value_type & () const | |
| Convert to a refreshed caller-module Safe pair snapshot. | |
| PairReference (const PairReference &other)=default | |
| Copy a pair-reference proxy. | |
| PairReference (PairReference &&other)=default | |
| Move a pair-reference proxy. | |
Public Attributes | |
| const First | first |
| Immutable first value copy. | |
| SecondReference | second |
| Callback-backed second value proxy. | |
Friends | |
| template<std::size_t Index> requires (Index == 0) | |
| const First & | get (const PairReference &reference) noexcept |
| Access the first component for structured bindings. | |
| template<std::size_t Index> requires (Index == 1) | |
| SecondReference & | get (PairReference &reference) noexcept |
| Access the second component for structured bindings. | |
| template<std::size_t Index> requires (Index == 0) | |
| const First && | get (PairReference &&reference) noexcept |
| Move-access the first component of a temporary proxy. | |
| template<std::size_t Index> requires (Index == 1) | |
| SecondReference | get (PairReference &&reference) noexcept |
| Move-access the second component of a temporary proxy. | |
| template<std::size_t Index> requires (Index == 0) | |
| const First && | get (const PairReference &&reference) noexcept |
| Read the first component of a const temporary proxy. | |
| template<std::size_t Index> requires (Index == 1) | |
| SecondReference | get (const PairReference &&reference) |
| Read the second component of a const temporary proxy. | |
Tuple-like proxy for an immutable first value and callback-backed second value.
| First | First value type. |
| Second | Second value type. |
| SecondReference | Mutable reference proxy for the second value. |
| using StormByte::Safe::PairReference< First, Second, SecondReference >::value_type = Pair<First, Second> |
Copied entry value type.
| StormByte::Safe::PairReference< First, Second, SecondReference >::PairReference | ( | const First & | firstValue, |
| const Second & | secondValue, | ||
| SecondReference | secondReference ) |
Bind the proxy to copied values and a mutable second-value proxy.
| firstValue | First value copy. |
| secondValue | Initial second value copy. |
| secondReference | Callback-backed second-value proxy. |
|
default |
Copy a pair-reference proxy.
| other | Source proxy. |
|
default |
Move a pair-reference proxy.
| other | Source proxy. |
| StormByte::Safe::PairReference< First, Second, SecondReference >::operator const value_type & | ( | ) | const |
|
friend |
Read the second component of a const temporary proxy.
| Index | Component index, which must be one. |
| reference | Pair-reference proxy. |
|
friend |
Read the first component of a const temporary proxy.
| Index | Component index, which must be zero. |
| reference | Pair-reference proxy. |
|
friend |
Access the first component for structured bindings.
| Index | Component index, which must be zero. |
| reference | Pair-reference proxy. |
|
friend |
Move-access the second component of a temporary proxy.
| Index | Component index, which must be one. |
| reference | Pair-reference proxy. |
|
friend |
Move-access the first component of a temporary proxy.
| Index | Component index, which must be zero. |
| reference | Pair-reference proxy. |
|
friend |
Access the second component for structured bindings.
| Index | Component index, which must be one. |
| reference | Pair-reference proxy. |
| const First StormByte::Safe::PairReference< First, Second, SecondReference >::first |
Immutable first value copy.
| SecondReference StormByte::Safe::PairReference< First, Second, SecondReference >::second |
Callback-backed second value proxy.