MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / empty

Function empty

include/dpp/appcommand.h:756–758  ·  view source on GitHub ↗

* @brief Check if the value variant holds std::monostate and options vector is empty (i.e. the option wasn't supplied) * @return bool true, if value variant holds std::monostate and options vector is empty */

Source from the content-addressed store, hash-verified

754 * @return bool true, if value variant holds std::monostate and options vector is empty
755 */
756 bool empty() {
757 return std::holds_alternative<std::monostate>(value) && options.empty();
758 }
759
760 /**
761 * @brief Get an option value by index

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected