__GNU_PARALLEL::_LOSERTREETRAITS(3cxx)
πΈ NAME πΈ
__gnu_parallel::_LoserTreeTraits< _Tp > β literally the traits that decide whether your loser tree should be out here using pointers or just copying values. That's the whole vibe. π
(also hiii bestie, this is the page from the (3cxx) manual, welcome to the group chat π«Ά)
β¨ SYNOPSIS β¨
okay so first thing, you gotta pull it in:
#include <multiway_merge.h>
π Static Public Attributes π
static const bool _M_use_pointerβ true iff to use pointers instead of values in loser trees. (iff = if and only if, she's precise like that πββοΈ)
π Detailed Description π
the whole struct, laid out for you:
template<typename _Tp>
struct __gnu_parallel::_LoserTreeTraits< _Tp >
Traits for determining whether the loser tree should use pointers or copies. iconic behavior honestly.
The field '_M_use_pointer' is what decides whether to use pointers in the loser trees, or whether to copy the values into the loser tree. no cap.
The default behavior? Use pointers if the data type is 4 times as big as the pointer to it. that's the rule, bestie, don't come for me.
Specialize for your data type to customize the behavior. yes, you can make it your own, main character energy.
Example, and I'm keeping this exactly:
template<> struct _LoserTreeTraits<int> { static const bool _M_use_pointer = false; };
template<> struct _LoserTreeTraits<heavyweight_type> { static const bool _M_use_pointer = true; };
Parameters
_Tpβ type to give the loser tree traits for. give her a type and she'll give you traits. π
π Member Data Documentation π
β _M_use_pointer β
template<typename _Tp > const bool __gnu_parallel::_LoserTreeTraits< _Tp >::_M_use_pointer [static]
True iff to use pointers instead of values in loser trees. And the default behavior is to use pointers if the data type is four times as big as the pointer to it. same rule, four times, periodt. π
π¦ Author π¦
Generated automatically by Doxygen for libstdc++ from the source code. so don't @ me, @ Doxygen. π
and that's the tea β β this page is from libstdc++ (section 3cxx bestie), with the date stamped down in the footer where the original footer line lived, all auto-generated by Doxygen. mwah ππ
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms