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 289 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 290 of file partitioner.h.

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

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

Copyright © 2005-2019 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.