mavsdk::overloaded Struct Reference

#include: plugin_base.h


Creates an overloaded callable object from multiple other callables.

This template class allows to combine multiple callable objects into one overloaded callable object, that can handle different types of parameters. For example:

overloaded { { LogErr() << "Got an unexpected type"; }, { LogDebug() << "Got an expected type"; } }((uint32_t) 100);

This is especially useful for creating callback functions to handle different parameter types

© MAVSDK Development Team 2017-2023. License: CC BY 4.0            Updated: 2023-12-27 03:58:12

results matching ""

    No results matching ""