---
name: "__gnu_parallel::loser_tree_traits"
section: "3cxx"
platform: "linux"
package: "libstdc++6-4.4-doc"
version: "4.4.7-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_parallel::loser_tree_traits/3cxx"
---

# \_\_gnu\_parallel::loser\_tree\_traits(3cxx)

## NAME

\_\_gnu\_parallel::loser\_tree\_traits\< T \> -

## 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.
