From 85332b0fb378ebdfb87cdf2f8b73e4942552be49 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 26 Aug 2020 23:11:12 -0500 Subject: [PATCH] Add missing docs for lyra::val. --- data/single_include/lyra/lyra.hpp | 11 +++++++++++ docs/lyra.html | 13 ++++++++++++- include/lyra/val.hpp | 11 +++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/data/single_include/lyra/lyra.hpp b/data/single_include/lyra/lyra.hpp index d1b4baf..de80826 100644 --- a/data/single_include/lyra/lyra.hpp +++ b/data/single_include/lyra/lyra.hpp @@ -1151,6 +1151,17 @@ namespace lyra { [#lyra_val] = `lyra::val` +[source] +---- +auto val(T && v); +auto val(const char * v); +---- + +Makes a bound self-contained value of the type of the given r-value. The created +bound values can be used in place of the value references for arguments. And can +be retrieved with the +<> call. + */ // end::reference[] template detail::BoundVal val(T && v) diff --git a/docs/lyra.html b/docs/lyra.html index b1f4e36..39c92a5 100644 --- a/docs/lyra.html +++ b/docs/lyra.html @@ -2349,7 +2349,18 @@

11.17

11.18. lyra::val

- +
+
+
auto val(T && v);
+auto val(const char * v);
+
+
+
+

Makes a bound self-contained value of the type of the given r-value. The created +bound values can be used in place of the value references for arguments. And can +be retrieved with the +lyra::cli::operator[] call.

+
diff --git a/include/lyra/val.hpp b/include/lyra/val.hpp index e2477c0..ec9b29b 100644 --- a/include/lyra/val.hpp +++ b/include/lyra/val.hpp @@ -16,6 +16,17 @@ namespace lyra { [#lyra_val] = `lyra::val` +[source] +---- +auto val(T && v); +auto val(const char * v); +---- + +Makes a bound self-contained value of the type of the given r-value. The created +bound values can be used in place of the value references for arguments. And can +be retrieved with the +<> call. + */ // end::reference[] template detail::BoundVal val(T && v)