ALib C++ Library
by
Library Version:
2412 R0
Documentation generated by
Loading...
Searching...
No Matches
home
dev
A-Worx
ALib
src
alib
containers
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
11
#include "
alib/lang/commonenumdefs.hpp
"
12
13
ALIB_ASSERT_MODULE
(CONTAINERS)
14
15
namespace
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
//==================================================================================================
31
enum 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.
42
using
Recycling
=
containers::Recycling
;
43
44
}
// namespace [alib]
45
46
47
#endif
// HPP_ALIB_MONOMEM_FWDS
48
commonenumdefs.hpp
ALIB_ASSERT_MODULE
#define ALIB_ASSERT_MODULE(modulename)
Definition
alib.hpp:223
alib::containers::Recycling
Recycling
Definition
recycling.hpp:32
alib::containers::Recycling::Private
@ Private
< Denotes private recycling. This is usaully the default value.
alib::containers::Recycling::None
@ None
< Denotes that no recycling should be performed.
alib::containers::Recycling::Shared
@ Shared
< Denotes shared recycling.
alib
Definition
alib.cpp:69