OpenKalman
pattern_collection_type_of.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_PATTERN_COLLECTION_TYPE_OF_HPP
17 #define OPENKALMAN_PATTERN_COLLECTION_TYPE_OF_HPP
18 
19 
21 
22 namespace OpenKalman
23 {
28 #ifdef __cpp_concepts
29  template<typename T>
30 #else
31  template<typename T, typename = void>
32 #endif
34 
35 
39 #ifdef __cpp_concepts
40  template<indexible T>
42 #else
43  template<typename T>
44  struct pattern_collection_type_of<T, std::enable_if_t<indexible<T>>>
45 #endif
46  {
47  using type = typename std::decay_t<decltype(get_pattern_collection(std::declval<T&>()))>;
48  };
49 
50 
54  template<typename T>
56 
57 
58 }
59 
60 #endif
typename pattern_collection_type_of< T >::type pattern_collection_type_of_t
helper template for pattern_collection_type_of.
Definition: pattern_collection_type_of.hpp:55
The root namespace for OpenKalman.
Definition: basics.hpp:34
Definition of get_mdspan function.
The pattern_collection type of an indexible object.
Definition: pattern_collection_type_of.hpp:33