WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
function_ref.hpp File Reference
#include <functional>
#include <memory>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  slp::function_ref< R(Args...)>
 An implementation of std::function_ref, a lightweight non-owning reference to a callable. More...
 

Namespaces

namespace  slp
 

Functions

template<typename R , typename... Args>
constexpr void slp::swap (function_ref< R(Args...)> &lhs, function_ref< R(Args...)> &rhs) noexcept
 Swaps the referred callables of lhs and rhs.
 
template<typename R , typename... Args>
 slp::function_ref (R(*)(Args...)) -> function_ref< R(Args...)>