Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::interface9::internal::proportion_helper< Range, typename enable_if< Range::is_splittable_in_proportion, void >::type > Struct Template Reference

#include <partitioner.h>

Collaboration diagram for tbb::interface9::internal::proportion_helper< Range, typename enable_if< Range::is_splittable_in_proportion, void >::type >:

Static Public Member Functions

static proportional_split get_split (size_t n)
 

Detailed Description

template<typename Range>
struct tbb::interface9::internal::proportion_helper< Range, typename enable_if< Range::is_splittable_in_proportion, void >::type >

Definition at line 288 of file partitioner.h.

Member Function Documentation

◆ get_split()

template<typename Range >
static proportional_split tbb::interface9::internal::proportion_helper< Range, typename enable_if< Range::is_splittable_in_proportion, void >::type >::get_split ( size_t  n)
inlinestatic

Definition at line 289 of file partitioner.h.

289  {
290 #if __TBB_NONUNIFORM_TASK_CREATION
291  size_t right = (n + 2) / 3;
292 #else
293  size_t right = n / 2;
294 #endif
295  size_t left = n - right;
296  return proportional_split(left, right);
297  }

The documentation for this struct was generated from the following file:

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.