LibreOffice: rtl::StaticAggregate< T, InitAggregate > Class Template Reference

LibreOffice LibreOffice 26.2 SDK C/C++ API Reference

Loading...
Searching...
No Matches
rtl::StaticAggregate< T, InitAggregate > Class Template Reference

Helper class for a late-initialized static aggregate, e.g. More...

`#include <instance.hxx>`

## Static Public Member Functions
static T * | get ()
| Gets the static aggregate, late-initializing.

## Detailed Description

template<typename T, typename InitAggregate>
class rtl::StaticAggregate< T, InitAggregate >

Helper class for a late-initialized static aggregate, e.g.

an array, implementing the double-checked locking pattern correctly.

Template Parameters

  T | aggregate's element type
  InitAggregate | initializer functor class

## Member Function Documentation

## ◆ get()

template<typename T, typename InitAggregate>

T * rtl::StaticAggregate< T, InitAggregate >::get | ( |  | ) |
| inlinestatic

Gets the static aggregate, late-initializing.

Mutual exclusion is performed using the osl global mutex.

Returns
  aggregate

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

- rtl/instance.hxx