Commit f8933334 authored by Daniel Boles's avatar Daniel Boles

Variant: Slightly elaborate Variant<Variant> docs

Point out get_n_children() for checking nullable status, and copy the
doc for Variant<VariantBase> to Variant< Variant<T> >.

https://bugzilla.gnome.org/show_bug.cgi?id=778219
parent 500a111c
......@@ -449,7 +449,9 @@ public:
/** Specialization of Variant containing a VariantBase.
* Perhaps the main use of this is as a maybe-typed (i.e. nullable) Variant, as
* it inherits methods create_maybe() and get_maybe() from VariantContainerBase.
* it inherits the methods create_maybe() and get_maybe() from
* VariantContainerBase, plus get_n_children() to allow checking whether there
* is a contained value, i.e. the inner Variant is not <tt>nothing</tt>.
*
* @newin{2,28}
* @ingroup Variant
......@@ -500,6 +502,11 @@ public:
};
/** Specialization of Variant containing a Variant<T>.
* Perhaps the main use of this is as a maybe-typed (i.e. nullable) Variant, as
* it inherits the methods create_maybe() and get_maybe() from
* VariantContainerBase, plus get_n_children() to allow checking whether there
* is a contained value, i.e. the inner Variant is not <tt>nothing</tt>.
*
* @newin{2,36}
* @ingroup Variant
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment