aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-14 09:22:50 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-14 09:57:40 +0100
commitcabf80cc5dfeb84eef7c4d7784eee0dc87de6d5e (patch)
tree05a370d70ee2c8aee9d6bdf44a0a4f1a94dff5cc /doc/api/cplusplus
parent81d87f2466fcccf199a0a7363062eab649acb87a (diff)
downloadpaludis-cabf80cc5dfeb84eef7c4d7784eee0dc87de6d5e.tar.gz
paludis-cabf80cc5dfeb84eef7c4d7784eee0dc87de6d5e.tar.xz
Maintainers as objects
Diffstat (limited to 'doc/api/cplusplus')
-rw-r--r--doc/api/cplusplus/examples/example_metadata_key.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/api/cplusplus/examples/example_metadata_key.cc b/doc/api/cplusplus/examples/example_metadata_key.cc
index fffa6ea13..264317b7c 100644
--- a/doc/api/cplusplus/examples/example_metadata_key.cc
+++ b/doc/api/cplusplus/examples/example_metadata_key.cc
@@ -172,6 +172,13 @@ namespace
cout << indent << left << setw(30) << " Value:" << " " << join(value->begin(), value->end(), " ") << endl;
}
+ void visit(const MetadataCollectionKey<Maintainers> & key)
+ {
+ auto value(key.parse_value());
+ cout << indent << left << setw(30) << " Class:" << " " << "MetadataCollectionKey<Maintainers>" << endl;
+ cout << indent << left << setw(30) << " Value:" << " " << join(value->begin(), value->end(), " ") << endl;
+ }
+
void visit(const MetadataCollectionKey<FSPathSequence> & key)
{
auto value(key.parse_value());