__GNU_PARALLEL::LOSER_TREE_TRAITS(3)
π NAME π
okay bestie, welcome to __gnu_parallel::loser_tree_traits β this is the __gnu_para...tree_traits(3) page from the Library Functions Manual, and it is literally Traits for determining whether the loser tree should use pointers or copies. π
β¨ SYNOPSIS β¨
πΈ Static Public Attributes πΈ
static const bool use_pointerβ the static public attribute, front and center. π
π¦ Detailed Description π¦
okay so hereβs the template situation:
template<typename T> struct __gnu_parallel::loser_tree_traits< T >
This struct is all about Traits for determining whether the loser tree should use pointers or copies. The field 'use_pointer' is used to determine whether to use pointers in the loser trees or whether to copy the values into the loser tree. The default behavior is to use pointers if the data type is 4 times as big as the pointer to it. Specialize for your data type to customize the behavior β thatβs the move, no cap. β¨
Example:
template<> struct loser_tree_traits<int> { static const bool use_pointer = false; };
template<> struct loser_tree_traits<heavyweight_type> { static const bool use_pointer = true; };
- Parameters:
Tβ type to give the loser tree traits for. π«Ά
Definition at line 776 of file multiway_merge.h.
π Member Data Documentation π
template<typename T > const bool __gnu_parallel::loser_tree_traits< T >::use_pointer [static]
True iff to use pointers instead of values in loser trees. π
The default behavior is to use pointers if the data type is four times as big as the pointer to it.
Definition at line 784 of file multiway_merge.h.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. π€π
xoxo, libstdc++ π β dated 21 Apr 2009 β from your __gnu_para...tree_traits(3) footer bestie π
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms