|
tfel
|
a proxy class More...
#include </home/runner/work/tfel/tfel/include/TFEL/Math/General/StridedRandomAccessIterator.hxx>
Public Types | |
| using | traits = std::iterator_traits<iterator_base> |
| a simple alias | |
| using | reference = typename traits::reference |
| a simple alias | |
Public Member Functions | |
| proxy (const StridedRandomAccessIterator p_) | |
| proxy (proxy &&)=default | |
| move construtor | |
| proxy (const proxy &)=default | |
| copy construtor | |
| proxy & | operator= (const proxy &src) |
| standard assignement | |
| template<typename T> | |
| proxy & | operator= (const T &v) |
| assignement | |
| operator reference () | |
| implicit conversion to value_type | |
| operator const reference & () const | |
| implicit conversion to value_type | |
| StridedRandomAccessIterator | operator& () const |
| adress operator | |
a proxy class
This proxy is used so that an expression such as &p[o], where p is a StridedRandomAccessIterator and o is an offset, returns a StridedRandomAccessIterator.
Such expressions are widely used in MFront to initialize variables and we can not change this easily.
|
inlineexplicit |
default construtor
| [in] | p_ | : value of the StridedRandomAccessIterator |