__gnu_parallel::_losertreetraits(3) [debian man page]
__gnu_parallel::_LoserTreeTraits< _Tp >(3cxx) __gnu_parallel::_LoserTreeTraits< _Tp >(3cxx)
NAME
__gnu_parallel::_LoserTreeTraits< _Tp > -
SYNOPSIS
Static Public Attributes
static const bool _M_use_pointer
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.
Definition at line 727 of file multiway_merge.h.
Member Data Documentation
template<typename _Tp > const bool __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.
Definition at line 735 of file multiway_merge.h.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Nov 27 2012 __gnu_parallel::_LoserTreeTraits< _Tp >(3cxx)
Check Out this Related Man Page
__gnu_parallel::__replace_selector< _It, _Tp >(3) Library Functions Manual __gnu_parallel::__replace_selector< _It, _Tp >(3)
NAME
__gnu_parallel::__replace_selector< _It, _Tp > -
SYNOPSIS
Inherits __gnu_parallel::__generic_for_each_selector< _It >.
Public Member Functions
__replace_selector (const _Tp &__new_val)
bool operator() (_Tp &__v, _It __i)
Public Attributes
const _Tp & __new_val
_It _M_finish_iterator
Detailed Description
template<typename _It, typename _Tp>struct __gnu_parallel::__replace_selector< _It, _Tp >
std::replace() selector.
Definition at line 132 of file for_each_selectors.h.
Constructor & Destructor Documentation
template<typename _It , typename _Tp > __gnu_parallel::__replace_selector< _It, _Tp >::__replace_selector (const _Tp &__new_val) [inline],
[explicit]
Constructor.
Parameters:
__new_val Value to replace with.
Definition at line 140 of file for_each_selectors.h.
Member Function Documentation
template<typename _It , typename _Tp > bool __gnu_parallel::__replace_selector< _It, _Tp >::operator() (_Tp &__v, _It__i) [inline]
Functor execution.
Parameters:
__v Current value.
__i iterator referencing object.
Definition at line 146 of file for_each_selectors.h.
References __gnu_parallel::__replace_selector< _It, _Tp >::__new_val.
Member Data Documentation
template<typename _It , typename _Tp > const _Tp& __gnu_parallel::__replace_selector< _It, _Tp >::__new_val
Value to replace with.
Definition at line 135 of file for_each_selectors.h.
Referenced by __gnu_parallel::__replace_selector< _It, _Tp >::operator()().
template<typename _It > _It __gnu_parallel::__generic_for_each_selector< _It >::_M_finish_iterator [inherited]
_Iterator on last element processed; needed for some algorithms (e. g. std::transform()).
Definition at line 47 of file for_each_selectors.h.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Jun 10 2014 __gnu_parallel::__replace_selector< _It, _Tp >(3)