[no ci] Adding new "include <iostream>" lines in the documentation following the recent removal of iostream from our headers.

This commit is contained in:
Daniel Lemire 2021-08-13 11:23:16 -04:00
parent de4deb8c4e
commit fc0934755a
3 changed files with 8 additions and 3 deletions

View File

@ -53,6 +53,7 @@ The simdjson library is easily consumable with a single .h and .cpp file.
2. Create `quickstart.cpp`:
```c++
#include <iostream>
#include "simdjson.h"
using namespace simdjson;
int main(void) {

View File

@ -517,6 +517,7 @@ for (ondemand::object car : parser.iterate(cars_json)) {
The following example illustrates how you may also iterate through object values, effectively visiting all key-value pairs in the object.
```C++
#include <iostream>
#include "simdjson.h"
using namespace std;
using namespace simdjson;
@ -778,8 +779,8 @@ it selects the key `"count"` within that object.
```C++
#include "simdjson.h"
#include <iostream>
#include "simdjson.h"
int main(void) {
simdjson::ondemand::parser parser;
@ -810,8 +811,8 @@ Observe how we use the `at` method when querying an index into an array, and not
```C++
#include "simdjson.h"
#include <iostream>
#include "simdjson.h"
int main(void) {
simdjson::ondemand::parser parser;
@ -934,8 +935,8 @@ program from continuing if there was an error.
If one is willing to trigger exceptions, it is possible to write simpler code:
```C++
#include "simdjson.h"
#include <iostream>
#include "simdjson.h"
int main(void) {
simdjson::ondemand::parser parser;

View File

@ -274,6 +274,7 @@ Our program loads the file, selects value corresponding to key "search_metadata"
it selects the key "count" within that object.
```C++
#include <iostream>
#include "simdjson.h"
int main(void) {
@ -301,6 +302,7 @@ triggering exceptions. To do this, we use `["statuses"].at(0)["id"]`. We break t
Observe how we use the `at` method when querying an index into an array, and not the bracket operator.
```C++
#include <iostream>
#include "simdjson.h"
int main(void) {
@ -457,6 +459,7 @@ program from continuing if there was an error.
If one is willing to trigger exceptions, it is possible to write simpler code:
```C++
#include <iostream>
#include "simdjson.h"
int main(void) {