LCP: Update documentation

Summary: Depends on D2090

Reviewers: mtomic, teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2091
This commit is contained in:
Lovro Lugovic
2019-05-10 14:49:42 +02:00
parent 59af45f94e
commit b8514ccf04
2 changed files with 127 additions and 56 deletions

View File

@@ -1164,7 +1164,7 @@ We have already seen two options that `:clone` accepts: `:return-type` and
`:return-type` expects a function that takes a single argument which is the C++
type name of the class and produces C++ code, which is a valid C++ type
delcaration. Here we used it to specify that `Clone` function should return a
declaration. Here we used it to specify that `Clone` function should return a
`std::unique_ptr` to the newly created `Node` to override the default behavior.
When `:return-type` option is not provided and class `T` is a member of an
inheritance hierarchy, `Clone` will return `std::unique_ptr<Base>`, where