ITK  5.4.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.


class  itk::SingletonIndex




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

Function Documentation

◆ Unused()

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

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().