xo-callback subrepo tidy [GIT]

This commit is contained in:
Roland Conybeare 2026-06-06 22:07:24 -04:00
commit c75cfc7616
15 changed files with 15 additions and 586 deletions

View file

@ -0,0 +1,24 @@
/* @file callback_concept.hpp
*
* author: Roland Conybeare, Aug 2025
*/
namespace xo {
namespace fn {
/** @concept callback_concept
* @brief Concept for functors that can be used with @ref CallbackSetImpl
*
**/
template <typename Callback>
concept callback_concept = requires(Callback cb)
{
// no constraints on how callback is invoked.
{ cb.notify_add_callback() };
{ cb.notify_remove_callback() };
};
}
}
/* callback_concept.hpp */