Utopia  2
Framework for studying models of complex & adaptive systems.
Utopia::Utils::is_array_like< T, U > Struct Template Reference

Check if a given type is homogeneous and has a size which is a compile time constant. The most common type which fulfils these requirements is std::array, hence the name 'is_array_like'. For a new type to be considered array_like, this functor has to be overloaded together with get_size. More...

#include <type_traits.hh>

Inheritance diagram for Utopia::Utils::is_array_like< T, U >:
Inheritance graph
[legend]
Collaboration diagram for Utopia::Utils::is_array_like< T, U >:
Collaboration graph
[legend]

Detailed Description

template<typename T, typename U = std::void_t<>>
struct Utopia::Utils::is_array_like< T, U >

Check if a given type is homogeneous and has a size which is a compile time constant. The most common type which fulfils these requirements is std::array, hence the name 'is_array_like'. For a new type to be considered array_like, this functor has to be overloaded together with get_size.

Template Parameters
TSome type to check array-likeness for.

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