Skip to content

Commit

Permalink
* Let Parser output reset() methods for basic containers like `s…
Browse files Browse the repository at this point in the history
…td::optional` (pull #696)
  • Loading branch information
HGuillemet committed Jul 20, 2023
1 parent ec90945 commit 8646e97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Let `Parser` output `reset()` methods for basic containers like `std::optional` ([pull #696](https://github.com/bytedeco/javacpp/pull/696))
* Let `Parser` define `front()` and `back()` for one-dimensional basic containers ([pull #695](https://github.com/bytedeco/javacpp/pull/695))
* Let `Parser` map iterators of basic containers systematically ([pull #694](https://github.com/bytedeco/javacpp/pull/694))
* Fix `Parser` for function parameters contained in template arguments ([pull #693](https://github.com/bytedeco/javacpp/pull/693))
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/bytedeco/javacpp/tools/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ void containers(Context context, DeclarationList declList) throws ParserExceptio
for (Type type : containerType.arguments) {
if (containerType.arguments.length == 1 && !tuple) {
decl.text += " public native boolean has_value();\n"
+ " public native void reset();\n"
+ " public native @Name(\"value\") " + type.annotations + type.javaName + " get();\n";
} else {
int namespace = containerName.lastIndexOf("::");
Expand Down

0 comments on commit 8646e97

Please sign in to comment.