Use "std::" consistently in the docs landing page examples

It was used in a couple of places, but not everywhere. Removing it would
make the example using std::copy less clear, so add the missing
occurrences of "std::".
This commit is contained in:
Vadim Zeitlin
2026-01-15 15:19:45 +01:00
parent a7b024465c
commit dc6afb6f65

View File

@@ -12,7 +12,7 @@ The simplest motivating code example for the SQL query that is supposed to retri
```cpp
int id = ...;
string name;
std::string name;
int salary;
sql << "select name, salary from persons where id = " << id,
@@ -36,7 +36,7 @@ sql << "select first_name, last_name, date_of_birth "
Integration with STL is also supported:
```cpp
Rowset<string> rs = (sql.prepare << "select name from persons");
Rowset<std::string> rs = (sql.prepare << "select name from persons");
std::copy(rs.begin(), rs.end(), std::ostream_iterator<std::string>(std::cout, "\n"));
```