OpenKalman
output_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) 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_OUTPUT_COLLECTION_HPP
17 #define OPENKALMAN_COLLECTIONS_OUTPUT_COLLECTION_HPP
18 
19 #include "collection.hpp"
20 #include "uniformly_settable.hpp"
21 
23 {
27  template<typename C, typename T>
28 #ifdef __cpp_lib_ranges
29 concept output_collection = collection<C> and (std::ranges::output_range<C, T> or uniformly_settable<C, T>);
30 #else
31  constexpr bool output_collection = collection<C> and (ranges::output_range<C, T> or uniformly_settable<C, T>);
32 #endif
33 
34 
35 } // namespace OpenKalman
36 
37 #endif //OPENKALMAN_COLLECTIONS_COLLECTION_HPP
Namespace for collections.
Definition: collections.hpp:27
Definition for collections::collection.
constexpr bool output_collection
A collection that can be modified on an element-by-element basis.
Definition: output_collection.hpp:31
Definition for collections::uniformly_settable.