OpenKalman
collection.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) 2024-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_COLLECTIONS_COLLECTION_HPP
17 #define OPENKALMAN_COLLECTIONS_COLLECTION_HPP
18 
19 #include "tuple_like.hpp"
20 #include "uniformly_gettable.hpp"
21 
23 {
30  template<typename T>
31 #ifdef __cpp_lib_ranges
32  concept collection = std::ranges::random_access_range<T> or uniformly_gettable<T>;
33 #else
34  constexpr bool collection = ranges::random_access_range<T> or uniformly_gettable<T>;
35 #endif
36 
37 
38 } // namespace OpenKalman
39 
40 #endif //OPENKALMAN_COLLECTIONS_COLLECTION_HPP
Definition for collections::tuple_like.
Namespace for collections.
Definition: collections.hpp:27
constexpr bool collection
An object describing a collection of objects.
Definition: collection.hpp:34
Definition for collections::uniformly_gettable.