OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::util::ContainerCreator< std::array< T, SIZE > > Struct Template Reference

#include <vectorHelpers.h>

+ Collaboration diagram for olb::util::ContainerCreator< std::array< T, SIZE > >:

Public Types

using C = std::array<T,SIZE>
 

Static Public Member Functions

static constexpr C create (std::size_t size)
 

Detailed Description

template<typename T, std::size_t SIZE>
struct olb::util::ContainerCreator< std::array< T, SIZE > >

Definition at line 466 of file vectorHelpers.h.

Member Typedef Documentation

◆ C

template<typename T , std::size_t SIZE>
using olb::util::ContainerCreator< std::array< T, SIZE > >::C = std::array<T,SIZE>

Definition at line 467 of file vectorHelpers.h.

Member Function Documentation

◆ create()

template<typename T , std::size_t SIZE>
static constexpr C olb::util::ContainerCreator< std::array< T, SIZE > >::create ( std::size_t size)
inlinestaticconstexpr

Definition at line 469 of file vectorHelpers.h.

469 {
470 OLB_PRECONDITION(SIZE == size);
471 return C{};
472 }
#define OLB_PRECONDITION(COND)
Definition olbDebug.h:46

References OLB_PRECONDITION.


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