Please add the sample code to the document.
Paul Backus
snarwin at gmail.com
Wed Jul 15 14:04:04 UTC 2020
On Wednesday, 15 July 2020 at 02:01:14 UTC, zoujiaqing wrote:
> look this doc, not found some examples:
> https://dlang.org/phobos/core_stdcpp_string.html
>
> look php doc, have it:
> https://www.php.net/manual/en/mysqli.query.php
I think D's policy is not to provide its own duplicated
documentation for bindings to the C and C++ standard libraries.
It might be a good idea to link to the <string> documentation on
cppreference.com [1], though.
The D docs *should* provide an example for how to
default-construct a C++ basic_string, since the D API in that
case is different from the C++ version.
[1] https://en.cppreference.com/w/cpp/header/string
More information about the Digitalmars-d
mailing list