Quick Start
References
Contributing
License
Appendix
const_iterator cbegin() const;
Returns a constant iterator to the first element.
digraph begin_end { node [ shape = Mrecord, height = 0, width = 0, fontname = "Courier New", fontsize = 10 ]; array [ label = < <TABLE BGCOLOR="lightgrey" BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="12"> <TR> <TD PORT="begin"></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD></TD> <TD PORT="end" STYLE="dotted" SIDES="TRB"></TD> </TR> </TABLE> >, shape = plaintext ] "begin" -> array:begin "end" -> array:end past_the_last [ label="Past the last element", fontname = "Helvetica", shape = plain ] past_the_last -> array:end [arrowhead="vee"] rank3 [style=invisible]; array -> rank3 [color=none] { rank = same; rank3; past_the_last; } }
A constant iterator to the first element.
Constant.
#include <pypp/builtins/list.hpp> #include <pypp/builtins/print.hpp> int main() { py::list<int> list = {0, 0, 1, 3}; py::print(*list.cbegin()); }
Output:
0