aboutsummaryrefslogtreecommitdiff
path: root/libbutl/manifest-parser.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/manifest-parser.ixx')
-rw-r--r--libbutl/manifest-parser.ixx17
1 files changed, 17 insertions, 0 deletions
diff --git a/libbutl/manifest-parser.ixx b/libbutl/manifest-parser.ixx
index 4ffe3c5..1dbdcd5 100644
--- a/libbutl/manifest-parser.ixx
+++ b/libbutl/manifest-parser.ixx
@@ -11,4 +11,21 @@ namespace butl
do { parse_next (r); } while (filter_ && !filter_ (r));
return r;
}
+
+ inline optional<std::vector<manifest_name_value>>
+ try_parse_manifest (manifest_parser& p)
+ {
+ std::vector<manifest_name_value> r;
+ return try_parse_manifest (p, r)
+ ? optional<std::vector<manifest_name_value>> (move (r))
+ : nullopt;
+ }
+
+ inline std::vector<manifest_name_value>
+ parse_manifest (manifest_parser& p)
+ {
+ std::vector<manifest_name_value> r;
+ parse_manifest (p, r);
+ return r;
+ }
}