Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::interface9::internal::is_splittable_in_proportion< Range > Class Template Reference

#include <partitioner.h>

Collaboration diagram for tbb::interface9::internal::is_splittable_in_proportion< Range >:

Static Public Attributes

static const bool value = (sizeof(decide<Range>(0)) == sizeof(yes))
 

Private Types

typedef char yes[1]
 
typedef char no[2]
 

Static Private Member Functions

template<typename range_type >
static yesdecide (typename enable_if< range_type::is_splittable_in_proportion >::type *)
 
template<typename range_type >
static nodecide (...)
 

Detailed Description

template<typename Range>
class tbb::interface9::internal::is_splittable_in_proportion< Range >

Class determines whether template parameter has static boolean constant 'is_splittable_in_proportion' initialized with value of 'true' or not. If template parameter has such field that has been initialized with non-zero value then class field will be set to 'true', otherwise - 'false'

Definition at line 267 of file partitioner.h.

Member Typedef Documentation

◆ no

template<typename Range >
typedef char tbb::interface9::internal::is_splittable_in_proportion< Range >::no[2]
private

Definition at line 270 of file partitioner.h.

◆ yes

template<typename Range >
typedef char tbb::interface9::internal::is_splittable_in_proportion< Range >::yes[1]
private

Definition at line 269 of file partitioner.h.

Member Function Documentation

◆ decide() [1/2]

template<typename Range >
template<typename range_type >
static yes& tbb::interface9::internal::is_splittable_in_proportion< Range >::decide ( typename enable_if< range_type::is_splittable_in_proportion< Range > >::type )
staticprivate

◆ decide() [2/2]

template<typename Range >
template<typename range_type >
static no& tbb::interface9::internal::is_splittable_in_proportion< Range >::decide (   ...)
staticprivate

Member Data Documentation

◆ value

template<typename Range >
const bool tbb::interface9::internal::is_splittable_in_proportion< Range >::value = (sizeof(decide<Range>(0)) == sizeof(yes))
static

Definition at line 277 of file partitioner.h.


The documentation for this class 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.