OpenKalman
callable-concepts.hpp
Go to the documentation of this file.
1 /* This file is part of OpenKalman, a header-only C++ library for
2  * Kalman filters and other recursive filters.
3  *
4  * Copyright (c) 2025 Christopher Lee Ogden <ogden@gatech.edu>
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0. If a copy of the MPL was not distributed with this
8  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
9  */
10 
16 #ifndef OPENKALMAN_COMPATIBILITY_CALLABLE_CONCEPTS_HPP
17 #define OPENKALMAN_COMPATIBILITY_CALLABLE_CONCEPTS_HPP
18 
19 #include "invoke.hpp"
20 
21 namespace OpenKalman::stdex
22 {
23 #ifdef __cpp_lib_concepts
24  using std::invocable;
25  using std::regular_invocable;
26 #else
27  template<typename F, typename...Args>
28  inline constexpr bool
29  invocable = std::is_invocable_v<F, Args...>;
30 
31 
32  template<typename F, typename...Args>
33  inline constexpr bool
34  regular_invocable = invocable<F, Args...>;
35 #endif
36 
37 }
38 
39 #endif
Definitions relating to a compatible replacement for std::invoke.
Definition: basics.hpp:55