Luna::Variant::erase

bool erase(const Name &k)

Removes the child variant with the specified key from the current variant.

Parameters

  • in k

    The key string of the variant to remove.

Return value

Returns true if one child variant with the specified key is successfully removed. Returns false otherwise.

Valid Usage

  • The current variant must be an object variant.