Static variables safety - create on demand, destroy on application termination. More...
Go to the source code of this file.
Go to the SVN repository for this file.
Static variables safety - create on demand, destroy on application termination.
Definition in file ncbi_safe_static.hpp.
◆ SAFE_CONST_STATICDeclare CSafeStatic<const type>, initialize it with 'init_value' of the same type.
Definition at line 585 of file ncbi_safe_static.hpp.
◆ SAFE_CONST_STATIC_EX #define SAFE_CONST_STATIC_EX ( type, init_value_type, init_value ) Value:CSafeStaticInit_Callbacks<const type, init_value_type, init_value> >
Declare CSafeStatic<const type>, initialize it with 'init_value' of type 'init_value_type'.
Definition at line 590 of file ncbi_safe_static.hpp.
◆ SAFE_CONST_STATIC_STRING #define SAFE_CONST_STATIC_STRING ( var, value ) Value: charSAFE_CONST_STATIC_STRING_##var[] =
value; \
SAFE_CONST_STATIC_STRING_##var) var
const GenericPointer< typename T::ValueType > T2 value
Declare CSafeStatic<const string>, initialize it with 'const char* value'.
Definition at line 595 of file ncbi_safe_static.hpp.
◆ s_CleanupGuardThis static variable must be present in all modules using on-demand static variables.
The guard must be created first regardless of the modules initialization order.
Definition at line 779 of file ncbi_safe_static.hpp.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4