OpenKalman
Namespaces | Functions | Variables
get.hpp File Reference

Definition for collections::get. More...

#include <tuple>
#include "basics/compatibility/ranges.hpp"
#include "basics/global-definitions.hpp"
#include "values/concepts/fixed.hpp"
#include "values/concepts/index.hpp"
#include "values/traits/fixed_number_of.hpp"
#include "collections/concepts/collection.hpp"
#include "collections/traits/size_of.hpp"
Include dependency graph for get.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 OpenKalman::collections
 Namespace for collections.
 

Functions

template<typename Arg , typename I , std::enable_if_t< collection< Arg > and values::index< I > and(ranges::random_access_range< Arg > or detail::gettable_with_i< Arg, I >), int > = 0>
decltype(auto) constexpr OpenKalman::collections::get (Arg &&arg, I i)
 A generalization of std::get. More...
 

Variables

template<typename T , typename I >
constexpr bool OpenKalman::collections::detail::gettable_with_i
 

Detailed Description

Definition for collections::get.

Variable Documentation

◆ gettable_with_i

template<typename T , typename I >
constexpr bool OpenKalman::collections::detail::gettable_with_i
inline
Initial value:
= []
{
if constexpr (values::fixed<I>) { return gettable<values::fixed_number_of_v<I>, T>; }
else { return false; }
}()