---
name: "__gnu_parallel::__multiway_merge_k_variant_sentinel_switch"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_parallel::__multiway_merge_k_variant_sentinel_switch"
---

# \_\_gnu\_parallel::\_\_multiway\_merge\_k\_variant\_sentinel\_switch(3)

Switch for k-way merging with \_\_sentinels turned on.

## NAME

\_\_gnu\_parallel::\_\_multiway\_merge\_k\_variant\_sentinel\_switch\< \_\_sentinels, \_\_stable, \_RAIterIterator, \_RAIter3, \_DifferenceTp, \_Compare \> - Switch for k-way merging with \_\_sentinels turned on.

## SYNOPSIS

\#include \<multiway\_merge.h\>

### Public Member Functions

\_RAIter3 **operator()** (\_RAIterIterator \_\_seqs\_begin, \_RAIterIterator \_\_seqs\_end, \_RAIter3 \_\_target, const typename **std::iterator\_traits**\< typename **std::iterator\_traits**\< \_RAIterIterator \>::value\_type::first\_type \>::value\_type &\_\_sentinel, \_DifferenceTp \_\_length, \_Compare \_\_comp)\

## Detailed Description

### template\<bool \_\_sentinels, bool \_\_stable, typename \_RAIterIterator, typename \_RAIter3, typename \_DifferenceTp, typename \_Compare\>

struct \_\_gnu\_parallel::\_\_multiway\_merge\_k\_variant\_sentinel\_switch\< \_\_sentinels, \_\_stable, \_RAIterIterator, \_RAIter3, \_DifferenceTp, \_Compare \>"Switch for k-way merging with \_\_sentinels turned on.

## Author

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