From 979f2652878448407db093a51fd29a44c8a66746 Mon Sep 17 00:00:00 2001 From: Niels Date: Sat, 11 Apr 2015 18:25:43 +0200 Subject: [PATCH] Created nlohmann::basicjson::rend (markdown) --- nlohmann::basicjson::rend.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 nlohmann::basicjson::rend.md diff --git a/nlohmann::basicjson::rend.md b/nlohmann::basicjson::rend.md new file mode 100644 index 0000000..a0d3dfb --- /dev/null +++ b/nlohmann::basicjson::rend.md @@ -0,0 +1,32 @@ +```cpp +iterator rend(); +const_iterator rend() const; +const_iterator crend() const; +``` + +## Description + +Returns a reverse iterator to the element following the last element of the reversed JSON container. It corresponds to the element preceding the first element of the non-reversed container. This element acts as a placeholder, attempting to access it results in undefined behavior. + +![illustration of reverse iterators](http://upload.cppreference.com/mwiki/images/3/39/range-rbegin-rend.svg) + +## Parameters + +None. + +## Return value + +Reverse iterator to the element following the last element. + +## Complexity + +Constant, as long as `ArrayType` and `ObjectType` satisfy the [Container concept](http://en.cppreference.com/w/cpp/concept/Container). + +## Exceptions + +None. The function's noexcept-specification is `noexcept`. + +## See also + +- [**rbegin**, **crbegin**](https://github.com/nlohmann/json/wiki/nlohmann::basicjson::rbegin)
+ returns a reverse iterator to the beginning