SUNphi  1.0
Aliver.hpp File Reference

Makes sure that the library is started. More...

Go to the source code of this file.

Functions

int SUNphi::aliverHelper ()
 Helper to make sure that the initializing functions are referenced.
 

Variables

static int SUNphi::makeSureAliverIsReferenced
 
Aliver SUNphi::aliver
 Presentation of the library.
 

Detailed Description

Makes sure that the library is started.

Definition in file Aliver.hpp.

Variable Documentation

int SUNphi::makeSureAliverIsReferenced
static
Initial value:
=
int aliverHelper()
Helper to make sure that the initializing functions are referenced.
Definition: SUNphi.cpp:108

Makes sure that the library is started

Elaborates on the approach of https://stackoverflow.com/a/43352830 1) takes the returned value of the helper, which is never used 2) static ensures that every TU gets a separate instance

Definition at line 18 of file Aliver.hpp.