\hypertarget{classkblib_1_1consume__iterator}{}\doxysection{kblib\+::consume\+\_\+iterator\texorpdfstring{$<$}{<} F \texorpdfstring{$>$}{>} Class Template Reference} \label{classkblib_1_1consume__iterator}\index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} An Output\+Iterator that simply calls a provided functor for each value assigned to it. {\ttfamily \#include $<$kblib/iterators.\+h$>$} \doxysubsection*{Public Types} \begin{DoxyCompactItemize} \item using \mbox{\hyperlink{classkblib_1_1consume__iterator_a81cde5eec46e2b75407bef70b48562dc}{value\+\_\+type}} = void \item using \mbox{\hyperlink{classkblib_1_1consume__iterator_a93a1b11db105c8989e51c1973dc3e4dc}{difference\+\_\+type}} = void \item using \mbox{\hyperlink{classkblib_1_1consume__iterator_a336329a5c090935c81adf1f817a8a853}{pointer}} = void \item using \mbox{\hyperlink{classkblib_1_1consume__iterator_a7506aacae969baa4aa39083c70ca98b9}{reference}} = void \item using \mbox{\hyperlink{classkblib_1_1consume__iterator_a2c560b450f20de6596db3d57de35f3df}{iterator\+\_\+category}} = std\+::output\+\_\+iterator\+\_\+tag \end{DoxyCompactItemize} \doxysubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item \mbox{\hyperlink{classkblib_1_1consume__iterator_a62c77a5c20369df5deef0a0bb5efebc6}{consume\+\_\+iterator}} (F f) \begin{DoxyCompactList}\small\item\em Constructs a \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} with the given function object. \end{DoxyCompactList}\item \mbox{\hyperlink{classkblib_1_1consume__iterator_a23d169fca2c7fd8e11bde2c1f25c7054}{consume\+\_\+iterator}} (const \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \&)=default \item \mbox{\hyperlink{classkblib_1_1consume__iterator_ad320dc49238ed760ce28832769babfa8}{consume\+\_\+iterator}} (\mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \&\&)=default \item auto \mbox{\hyperlink{classkblib_1_1consume__iterator_a54c962299e5378a857732ae5024c0fd6}{operator=}} (const \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \&) \&-\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \&=default \item auto \mbox{\hyperlink{classkblib_1_1consume__iterator_af8231c388ef7b4e115187983cf5fe282}{operator=}} (\mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \&\&) \&-\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \&=default \item \mbox{\hyperlink{classkblib_1_1consume__iterator_a6e19bee47a0745a49021612c36126d40}{$\sim$consume\+\_\+iterator}} ()=default \item {\footnotesize template$<$typename V $>$ }\\auto \mbox{\hyperlink{classkblib_1_1consume__iterator_ab5d70bbb5a0be3ad39a3edbbcc16ec9c}{operator=}} (V \&\&value) noexcept(noexcept(\mbox{\hyperlink{namespacekblib_a9b10acd2ddaea118b990e1177f626722}{kblib\+::invoke}}(fun, std\+::forward$<$ V $>$(value)))) -\/$>$ \mbox{\hyperlink{namespacekblib_a3cec35675700d7e15c9139e0497768e6}{kblib\+::ignore\+\_\+t}}$<$ decltype(\mbox{\hyperlink{namespacekblib_a9b10acd2ddaea118b990e1177f626722}{kblib\+::invoke}}(fun, std\+::forward$<$ V $>$(value))), \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \& $>$ \begin{DoxyCompactList}\small\item\em Pass value to F. \end{DoxyCompactList}\item auto \mbox{\hyperlink{classkblib_1_1consume__iterator_aff18ad61701a6ec7fe3a2273dec694ae}{operator$\ast$}} () -\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \& \begin{DoxyCompactList}\small\item\em A no-\/op. \end{DoxyCompactList}\item auto \mbox{\hyperlink{classkblib_1_1consume__iterator_ae5bbcd29d31d402ca64421f319eaea5d}{operator++}} () -\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \& \begin{DoxyCompactList}\small\item\em A no-\/op. \end{DoxyCompactList}\item auto \mbox{\hyperlink{classkblib_1_1consume__iterator_acb963f8723b97e5fe983b92e90feb62d}{operator++}} (int) -\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \& \begin{DoxyCompactList}\small\item\em A no-\/op. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{Detailed Description} \subsubsection*{template$<$typename F$>$\newline class kblib\+::consume\+\_\+iterator$<$ F $>$} An Output\+Iterator that simply calls a provided functor for each value assigned to it. Definition at line \mbox{\hyperlink{iterators_8h_source_l01550}{1550}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \doxysubsection{Member Typedef Documentation} \mbox{\Hypertarget{classkblib_1_1consume__iterator_a93a1b11db105c8989e51c1973dc3e4dc}\label{classkblib_1_1consume__iterator_a93a1b11db105c8989e51c1973dc3e4dc}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!difference\_type@{difference\_type}} \index{difference\_type@{difference\_type}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{difference\_type}{difference\_type}} {\footnotesize\ttfamily template$<$typename F $>$ \\ using \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::difference\+\_\+type = void} Definition at line \mbox{\hyperlink{iterators_8h_source_l01556}{1556}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \mbox{\Hypertarget{classkblib_1_1consume__iterator_a2c560b450f20de6596db3d57de35f3df}\label{classkblib_1_1consume__iterator_a2c560b450f20de6596db3d57de35f3df}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!iterator\_category@{iterator\_category}} \index{iterator\_category@{iterator\_category}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{iterator\_category}{iterator\_category}} {\footnotesize\ttfamily template$<$typename F $>$ \\ using \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::iterator\+\_\+category = std\+::output\+\_\+iterator\+\_\+tag} Definition at line \mbox{\hyperlink{iterators_8h_source_l01559}{1559}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \mbox{\Hypertarget{classkblib_1_1consume__iterator_a336329a5c090935c81adf1f817a8a853}\label{classkblib_1_1consume__iterator_a336329a5c090935c81adf1f817a8a853}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!pointer@{pointer}} \index{pointer@{pointer}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{pointer}{pointer}} {\footnotesize\ttfamily template$<$typename F $>$ \\ using \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::pointer = void} Definition at line \mbox{\hyperlink{iterators_8h_source_l01557}{1557}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \mbox{\Hypertarget{classkblib_1_1consume__iterator_a7506aacae969baa4aa39083c70ca98b9}\label{classkblib_1_1consume__iterator_a7506aacae969baa4aa39083c70ca98b9}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!reference@{reference}} \index{reference@{reference}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{reference}{reference}} {\footnotesize\ttfamily template$<$typename F $>$ \\ using \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::reference = void} Definition at line \mbox{\hyperlink{iterators_8h_source_l01558}{1558}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \mbox{\Hypertarget{classkblib_1_1consume__iterator_a81cde5eec46e2b75407bef70b48562dc}\label{classkblib_1_1consume__iterator_a81cde5eec46e2b75407bef70b48562dc}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!value\_type@{value\_type}} \index{value\_type@{value\_type}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{value\_type}{value\_type}} {\footnotesize\ttfamily template$<$typename F $>$ \\ using \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::value\+\_\+type = void} Definition at line \mbox{\hyperlink{iterators_8h_source_l01555}{1555}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \doxysubsection{Constructor \& Destructor Documentation} \mbox{\Hypertarget{classkblib_1_1consume__iterator_a62c77a5c20369df5deef0a0bb5efebc6}\label{classkblib_1_1consume__iterator_a62c77a5c20369df5deef0a0bb5efebc6}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!consume\_iterator@{consume\_iterator}} \index{consume\_iterator@{consume\_iterator}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{consume\_iterator()}{consume\_iterator()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}} {\footnotesize\ttfamily template$<$typename F $>$ \\ \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::consume\+\_\+iterator (\begin{DoxyParamCaption}\item[{F}]{f }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}} Constructs a \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} with the given function object. \begin{DoxyParams}{Parameters} {\em f} & The functor to pass values to. \\ \hline \end{DoxyParams} Definition at line \mbox{\hyperlink{iterators_8h_source_l01566}{1566}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \mbox{\Hypertarget{classkblib_1_1consume__iterator_a23d169fca2c7fd8e11bde2c1f25c7054}\label{classkblib_1_1consume__iterator_a23d169fca2c7fd8e11bde2c1f25c7054}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!consume\_iterator@{consume\_iterator}} \index{consume\_iterator@{consume\_iterator}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{consume\_iterator()}{consume\_iterator()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}} {\footnotesize\ttfamily template$<$typename F $>$ \\ \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::consume\+\_\+iterator (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}}$<$ F $>$ \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}} \mbox{\Hypertarget{classkblib_1_1consume__iterator_ad320dc49238ed760ce28832769babfa8}\label{classkblib_1_1consume__iterator_ad320dc49238ed760ce28832769babfa8}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!consume\_iterator@{consume\_iterator}} \index{consume\_iterator@{consume\_iterator}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{consume\_iterator()}{consume\_iterator()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}} {\footnotesize\ttfamily template$<$typename F $>$ \\ \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::consume\+\_\+iterator (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}}$<$ F $>$ \&\&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}} \mbox{\Hypertarget{classkblib_1_1consume__iterator_a6e19bee47a0745a49021612c36126d40}\label{classkblib_1_1consume__iterator_a6e19bee47a0745a49021612c36126d40}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!````~consume\_iterator@{$\sim$consume\_iterator}} \index{````~consume\_iterator@{$\sim$consume\_iterator}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{$\sim$consume\_iterator()}{~consume\_iterator()}} {\footnotesize\ttfamily template$<$typename F $>$ \\ \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::$\sim$\mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}} \doxysubsection{Member Function Documentation} \mbox{\Hypertarget{classkblib_1_1consume__iterator_aff18ad61701a6ec7fe3a2273dec694ae}\label{classkblib_1_1consume__iterator_aff18ad61701a6ec7fe3a2273dec694ae}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!operator$\ast$@{operator$\ast$}} \index{operator$\ast$@{operator$\ast$}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{operator$\ast$()}{operator*()}} {\footnotesize\ttfamily template$<$typename F $>$ \\ auto \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::operator$\ast$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) -\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}}\& \hspace{0.3cm}{\ttfamily [inline]}} A no-\/op. Definition at line \mbox{\hyperlink{iterators_8h_source_l01593}{1593}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \mbox{\Hypertarget{classkblib_1_1consume__iterator_ae5bbcd29d31d402ca64421f319eaea5d}\label{classkblib_1_1consume__iterator_ae5bbcd29d31d402ca64421f319eaea5d}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!operator++@{operator++}} \index{operator++@{operator++}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{operator++()}{operator++()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}} {\footnotesize\ttfamily template$<$typename F $>$ \\ auto \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::operator++ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) -\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}}\& \hspace{0.3cm}{\ttfamily [inline]}} A no-\/op. Definition at line \mbox{\hyperlink{iterators_8h_source_l01597}{1597}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \mbox{\Hypertarget{classkblib_1_1consume__iterator_acb963f8723b97e5fe983b92e90feb62d}\label{classkblib_1_1consume__iterator_acb963f8723b97e5fe983b92e90feb62d}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!operator++@{operator++}} \index{operator++@{operator++}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{operator++()}{operator++()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}} {\footnotesize\ttfamily template$<$typename F $>$ \\ auto \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::operator++ (\begin{DoxyParamCaption}\item[{int}]{ }\end{DoxyParamCaption}) -\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}}\& \hspace{0.3cm}{\ttfamily [inline]}} A no-\/op. Definition at line \mbox{\hyperlink{iterators_8h_source_l01601}{1601}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. \mbox{\Hypertarget{classkblib_1_1consume__iterator_a54c962299e5378a857732ae5024c0fd6}\label{classkblib_1_1consume__iterator_a54c962299e5378a857732ae5024c0fd6}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!operator=@{operator=}} \index{operator=@{operator=}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{operator=()}{operator=()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}} {\footnotesize\ttfamily template$<$typename F $>$ \\ auto \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::operator= (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}}$<$ F $>$ \&}]{ }\end{DoxyParamCaption}) \& -\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \&=default\hspace{0.3cm}{\ttfamily [default]}} \mbox{\Hypertarget{classkblib_1_1consume__iterator_af8231c388ef7b4e115187983cf5fe282}\label{classkblib_1_1consume__iterator_af8231c388ef7b4e115187983cf5fe282}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!operator=@{operator=}} \index{operator=@{operator=}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{operator=()}{operator=()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}} {\footnotesize\ttfamily template$<$typename F $>$ \\ auto \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::operator= (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}}$<$ F $>$ \&\&}]{ }\end{DoxyParamCaption}) \& -\/$>$ \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}} \&=default\hspace{0.3cm}{\ttfamily [default]}} \mbox{\Hypertarget{classkblib_1_1consume__iterator_ab5d70bbb5a0be3ad39a3edbbcc16ec9c}\label{classkblib_1_1consume__iterator_ab5d70bbb5a0be3ad39a3edbbcc16ec9c}} \index{kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}!operator=@{operator=}} \index{operator=@{operator=}!kblib::consume\_iterator$<$ F $>$@{kblib::consume\_iterator$<$ F $>$}} \doxysubsubsection{\texorpdfstring{operator=()}{operator=()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}} {\footnotesize\ttfamily template$<$typename F $>$ \\ template$<$typename V $>$ \\ auto \mbox{\hyperlink{classkblib_1_1consume__iterator}{kblib\+::consume\+\_\+iterator}}$<$ F $>$\+::operator= (\begin{DoxyParamCaption}\item[{V \&\&}]{value }\end{DoxyParamCaption}) -\/$>$ \mbox{\hyperlink{namespacekblib_a3cec35675700d7e15c9139e0497768e6}{kblib\+::ignore\+\_\+t}}$<$decltype(\mbox{\hyperlink{namespacekblib_a9b10acd2ddaea118b990e1177f626722}{kblib\+::invoke}}(fun, std\+::forward$<$V$>$(value))), \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}}\&$>$ \hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}} Pass value to F. \begin{DoxyParams}{Parameters} {\em value} & The argument for the functor. \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} \mbox{\hyperlink{classkblib_1_1consume__iterator}{consume\+\_\+iterator}}\& $\ast$this. \end{DoxyReturn} Definition at line \mbox{\hyperlink{iterators_8h_source_l01582}{1582}} of file \mbox{\hyperlink{iterators_8h_source}{iterators.\+h}}. The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize} \item kblib/\mbox{\hyperlink{iterators_8h}{iterators.\+h}}\end{DoxyCompactItemize}