logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

__gnu_parallel::_LoserTreeTraits.3cxx

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++      __gnu_parallel::_LoserTreeTraits<_Tp>(3cxx)

Detailed Description

template<typename_Tp>
       struct __gnu_parallel::_LoserTreeTraits< _Tp >"Traits for determining whether the loser tree should use
       pointers or copies.

       The field '_M_use_pointer' is used to determine whether to use pointers in he 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.

       Example:

       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.

Member Data Documentation

template<typename_Tp>constbool__gnu_parallel::_LoserTreeTraits<_Tp>::_M_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.

Name

       __gnu_parallel::_LoserTreeTraits< _Tp > - Traits for determining whether the loser tree should use
       pointers or copies.

Synopsis

       #include <multiway_merge.h>

   StaticPublicAttributes
       static const bool _M_use_pointer
           True iff to use pointers instead of values in loser trees.

See Also