LibreCAD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
detail::multi_array_getter< I > Struct Template Reference

#include <visitor.h>

Static Public Member Functions

template<typename T , std::size_t N>
static constexpr auto get (const T &a, const std::array< std::size_t, N > &index) -> decltype(multi_array_getter< I-1 >::get(a[index[N-I]], index))
 

Detailed Description

template<std::size_t I>
struct detail::multi_array_getter< I >

Definition at line 134 of file visitor.h.

Member Function Documentation

template<std::size_t I>
template<typename T , std::size_t N>
static constexpr auto detail::multi_array_getter< I >::get ( const T &  a,
const std::array< std::size_t, N > &  index 
) -> decltype(multi_array_getter<I - 1>::get(a[index[N - I]], index))
inlinestatic

Definition at line 137 of file visitor.h.

139  {
140  return multi_array_getter<I - 1>::get(a[index[N - I]], index);
141  }
static constexpr auto get(const T &a, const std::array< std::size_t, N > &index) -> decltype(multi_array_getter< I-1 >::get(a[index[N-I]], index))
Definition: visitor.h:137

The documentation for this struct was generated from the following file: