Created nlohmann::basicjson::rend (markdown)

Niels committed 2015-04-11 18:25:43 +02:00
1 parent 74bd7b7e43
commit 979f265287
1 file changed
+32
+32
@@ -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)<br>
returns a reverse iterator to the beginning