From 291cd250cde341057af899f588861b9779a9a67d Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 12 Apr 2015 15:24:53 +0200 Subject: [PATCH] Created nlohmann::basicjson::front (markdown) --- nlohmann::basicjson::front.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 nlohmann::basicjson::front.md diff --git a/nlohmann::basicjson::front.md b/nlohmann::basicjson::front.md new file mode 100644 index 0000000..95582c0 --- /dev/null +++ b/nlohmann::basicjson::front.md @@ -0,0 +1,31 @@ +```cpp +reference front(); +const_reference front() const; +``` + +## Description + +Returns a reference to the first element in the container. Calling `front` on an empty container is undefined. + +For a JSON container `c`, the expression `c.front()` is equivalent to `*c.begin()`. + +## Parameters + +None. + +## Return value + +Reference to the first element. In cast of number, string, or boolean values, a reference to the value is returned. + +## Complexity + +Constant. + +## Exceptions + +`std::out_of_range` when called on null value. + +## See also + +- [**back**](https://github.com/nlohmann/json/wiki/nlohmann::basicjson::back)
+ access the last element \ No newline at end of file