iterative-solver 0.0
TempHandle.h
1#ifndef LINEARALGEBRA_SRC_MOLPRO_LINALG_ARRAY_UTIL_TEMPHANDLE_H
2#define LINEARALGEBRA_SRC_MOLPRO_LINALG_ARRAY_UTIL_TEMPHANDLE_H
3#include <map>
4#include <memory>
5#include <string>
6
8
10template <class HandleType>
11struct TempHandle {
12 static std::map<std::string, std::weak_ptr<HandleType>> handles;
13};
14
15template <class HandleType>
16std::map<std::string, std::weak_ptr<HandleType>> TempHandle<HandleType>::handles;
17
18} // namespace molpro::linalg::array::util
19
20#endif // LINEARALGEBRA_SRC_MOLPRO_LINALG_ARRAY_UTIL_TEMPHANDLE_H
Definition: ArrayHandler.h:23
Static registrar of temporary handles.
Definition: TempHandle.h:11
static std::map< std::string, std::weak_ptr< HandleType > > handles
Definition: TempHandle.h:12