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

© Dronecode 2017-2020. License: CC BY 4.0            Updated: 2022-01-14 14:21:25

results matching ""

    No results matching ""