OpenKalman
sized.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_SIZED_HPP
17 #define OPENKALMAN_COLLECTIONS_SIZED_HPP
18 
19 #include "basics/basics.hpp"
21 
23 {
27 #ifdef __cpp_lib_ranges
28  template<typename T>
29  concept sized =
30 #else
31  template<typename T>
32  constexpr bool sized =
33 #endif
34  values::index<decltype(collections::get_size(std::declval<T>()))>;
35 
36 }
37 
38 #endif
Namespace for collections.
Definition: collections.hpp:27
Definition for collections::get_size.
constexpr bool sized
An object (std::ranges::sized_range, std::tuple, std::span, etc.) that has a discernible size...
Definition: sized.hpp:32
Basic definitions for OpenKalman as a whole.