We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c40ad4 commit 8215783Copy full SHA for 8215783
ChangeLog
@@ -1,6 +1,8 @@
1
2026-04-09 Dirk Eddelbuettel <edd@debian.org>
2
3
* DESCRIPTION (Version, Date): Roll micro version and date
4
+ * inst/include/Rcpp/Nullable.h (T): Also add 'operator T()'
5
+
6
2026-04-08 Dirk Eddelbuettel <edd@debian.org>
7
8
* inst/include/Rcpp/Nullable.h (as): Enhance by adding an explicit
inst/include/Rcpp/Nullable.h
@@ -81,6 +81,16 @@ namespace Rcpp {
81
return m_sexp;
82
}
83
84
+ /**
85
+ * operator T() to return nullable object
86
+ *
87
+ * @throw 'not initialized' if object has not been set
88
+ */
89
+ inline operator T() const {
90
+ checkIfSet();
91
+ return Rcpp::as<T>(m_sexp);
92
+ }
93
94
/**
95
* get() accessor for object
96
*
0 commit comments