ITK  5.2.0
Insight Toolkit
Classes | Namespaces | Functions
itkSingleton.h File Reference
#include "itkMacro.h"
#include "itkSingletonMacro.h"
#include <map>
#include <functional>
+ Include dependency graph for itkSingleton.h:

Go to the source code of this file.

Classes

class  itk::SingletonIndex
 

Namespaces

 itk
 

Functions

template<typename T >
T * itk::Singleton (const char *globalName, std::function< void(void *)> func, std::function< void(void)> deleteFunc)
 
template<typename T >
void Unused (const T &)
 

Function Documentation

◆ Unused()

template<typename T >
void Unused ( const T &  )
inline

A function which does nothing.

This function is to be used to mark parameters as unused to suppress compiler warning. It can be used when the parameter needs to be named (i.e. itkNotUsed cannot be used) but is not always used. It ensures that the parameter is not optimized out.

Definition at line 35 of file itkSingleton.h.

Referenced by itk::Singleton().