OpenKalman
count_indices.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) 2022-2023 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_COUNT_INDICES_HPP
17 #define OPENKALMAN_COUNT_INDICES_HPP
18 
19 
20 namespace OpenKalman
21 {
26 #ifdef __cpp_concepts
27  template<interface::count_indices_defined_for T>
28  constexpr values::index auto
29 #else
30  template<typename T, std::enable_if_t<interface::count_indices_defined_for<T>, int> = 0>
31  constexpr auto
32 #endif
33  count_indices(const T& t)
34  {
36  }
37 
38 
39 } // namespace OpenKalman
40 
41 #endif //OPENKALMAN_COUNT_INDICES_HPP
constexpr auto count_indices(const T &t)
Get the number of indices available to address the components of an indexible object.
Definition: count_indices.hpp:33
The root namespace for OpenKalman.
Definition: basics.hpp:34
constexpr bool index
T is an index value.
Definition: index.hpp:56