Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
NCollection_LocalArray< theItem, MAX_ARRAY_SIZE >::InlineStorageNonTrivial Struct Reference

Inline storage for non-trivial types: raw aligned bytes for placement new. More...

#include <NCollection_LocalArray.hxx>

Public Member Functions

theItem * ptr () noexcept
const theItem * ptr () const noexcept

Data Fields

char myData [MAX_ARRAY_SIZE *sizeof(theItem)]

Detailed Description

template<class theItem, int MAX_ARRAY_SIZE = 1024>
struct NCollection_LocalArray< theItem, MAX_ARRAY_SIZE >::InlineStorageNonTrivial

Inline storage for non-trivial types: raw aligned bytes for placement new.

Member Function Documentation

◆ ptr() [1/2]

template<class theItem, int MAX_ARRAY_SIZE = 1024>
const theItem * NCollection_LocalArray< theItem, MAX_ARRAY_SIZE >::InlineStorageNonTrivial::ptr ( ) const
inlinenoexcept

◆ ptr() [2/2]

template<class theItem, int MAX_ARRAY_SIZE = 1024>
theItem * NCollection_LocalArray< theItem, MAX_ARRAY_SIZE >::InlineStorageNonTrivial::ptr ( )
inlinenoexcept

Field Documentation

◆ myData

template<class theItem, int MAX_ARRAY_SIZE = 1024>
char NCollection_LocalArray< theItem, MAX_ARRAY_SIZE >::InlineStorageNonTrivial::myData[MAX_ARRAY_SIZE *sizeof(theItem)]

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