OpenKalman
Classes | Namespaces | Functions
tuple_slice.hpp File Reference
#include <type_traits>
#include <tuple>
#include "collections/concepts/tuple_like.hpp"
Include dependency graph for tuple_slice.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  OpenKalman::collections::tuple_slice_view< index1, index2, T >
 A view to a slice of a tuple_like object. More...
 
struct  std::tuple_size< OpenKalman::collections::tuple_slice_view< index1, index2, T > >
 
struct  std::tuple_element< i, OpenKalman::collections::tuple_slice_view< index1, index2, T > >
 

Namespaces

 OpenKalman::collections
 Namespace for collections.
 

Functions

template<std::size_t index1, std::size_t index2, typename Arg >
constexpr auto OpenKalman::collections::tuple_slice (Arg &&arg)
 Takes a slice of a tuple, given an index range. More...
 
template<std::size_t index1, std::size_t index2, typename T , std::enable_if_t< tuple_like< T > and std::is_default_constructible_v< T >, int > = 0>
constexpr auto OpenKalman::collections::tuple_slice ()
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.