Homepage > Man Pages > Category > Subroutines
Homepage > Man Pages > Name > Other

__gnu_parallel::loser_tree_traits -

man page of __gnu_parallel::loser_tree_traits -

__gnu_parallel::loser_tree_traits -: __gnu_parallel

NAME
__gnu_parallel::loser_tree_traits - Traits for determining whether the loser tree should use pointers or copies.
SYNOPSIS
Static Public Attributes static const bool use_pointer

DETAILED DESCRIPTION

template<typename T>struct __gnu_parallel::loser_tree_traits< T > 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. 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. libstdc++ Fri __GNU_PARALLEL::LOSER_TREE_TRAITS -(3)
 
 
 

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.
Contact · Imprint · Privacy

Page generated in 31.73ms.

brieftauben-versteigerung.com | backbar.es | elternfragen.net