crend.cpp
Go to the documentation of this file.
00001 #include <json.hpp>
00002 
00003 using json = nlohmann::json;
00004 
00005 int main()
00006 {
00007     // create an array value
00008     json array = {1, 2, 3, 4, 5};
00009 
00010     // get an iterator to the reverse-end
00011     json::const_reverse_iterator it = array.crend();
00012 
00013     // increment the iterator to point to the first element
00014     --it;
00015 
00016     // serialize the element that the iterator points to
00017     std::cout << *it << '\n';
00018 }


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:02