ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
recycling.hpp
Go to the documentation of this file.
1//==================================================================================================
2/// \file
3/// This header file is part of module \alib_containers of the \aliblong.
4///
5/// \emoji :copyright: 2013-2024 A-Worx GmbH, Germany.
6/// Published under \ref mainpage_license "Boost Software License".
7//==================================================================================================
8#ifndef HPP_ALIB_MONOMEM_FWDS
9#define HPP_ALIB_MONOMEM_FWDS 1
10#pragma once
12
13ALIB_ASSERT_MODULE(CONTAINERS)
14
15namespace alib { namespace containers {
16
17//==================================================================================================
18/// This enumeration contains three elements, which denote the type of node-recycling that a
19/// container instantiation is deemed to perform. One of these elements is to be set as the value
20/// for a corresponding template parameter named \p{TRecycling} found in container types
21/// of this module.
22///
23/// In the case \b Shared is given, the container type will expose a type definition named
24/// \b SharedRecyclerType, which can be used to define the external shared recycler object.
25/// This object has then to be passed to the constructor of the container instance.
26///
27/// \see
28/// Chapter \ref alib_contmono_intro_recycling of the Programmer's Manual
29/// for this \alibmod.
30//==================================================================================================
31enum class Recycling
32{
33 None , ///<< Denotes that no recycling should be performed.
34 Private, ///<< Denotes private recycling. This is usaully the default value.
35 Shared , ///<< Denotes shared recycling.
36};
37
38
39} // namespace alib[::containers]
40
41/// Type alias in namespace \b alib.
43
44} // namespace [alib]
45
46
47#endif // HPP_ALIB_MONOMEM_FWDS
48
#define ALIB_ASSERT_MODULE(modulename)
Definition alib.hpp:223
@ Private
< Denotes private recycling. This is usaully the default value.
@ None
< Denotes that no recycling should be performed.
@ Shared
< Denotes shared recycling.
Definition alib.cpp:69