OpenKalman
has_untyped_index.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) 2019-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_HAS_UNTYPED_INDEX_HPP
17 #define OPENKALMAN_HAS_UNTYPED_INDEX_HPP
18 
19 #include "coordinates/coordinates.hpp"
21 
22 namespace OpenKalman
23 {
28 #ifdef __cpp_concepts
29  template<typename T, std::size_t N>
30  concept has_untyped_index =
31 #else
32  template<typename T, std::size_t N>
33  constexpr bool has_untyped_index =
34 #endif
35  coordinates::euclidean_pattern<decltype(get_pattern_collection(std::declval<T>(), std::integral_constant<std::size_t, N>{}))>;
36 
37 
38 }
39 
40 #endif
constexpr bool has_untyped_index
Specifies that T has an untyped index N.
Definition: has_untyped_index.hpp:33
The root namespace for OpenKalman.
Definition: basics.hpp:34
Definition of get_pattern_collection function.