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

#include <vectorHelpers.h>

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

Public Types

using C = Vector<T,SIZE>
 

Static Public Member Functions

static constexpr C create (std::size_t size)
 

Detailed Description

template<typename T, unsigned SIZE>
struct olb::util::ContainerCreator< Vector< T, SIZE > >

Definition at line 476 of file vectorHelpers.h.

Member Typedef Documentation

◆ C

template<typename T , unsigned SIZE>
using olb::util::ContainerCreator< Vector< T, SIZE > >::C = Vector<T,SIZE>

Definition at line 477 of file vectorHelpers.h.

Member Function Documentation

◆ create()

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

Definition at line 479 of file vectorHelpers.h.

479 {
480 OLB_PRECONDITION(SIZE == size);
481 return C{};
482 }
#define OLB_PRECONDITION(COND)
Definition olbDebug.h:46

References OLB_PRECONDITION.


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