DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::detail::ReductionIdentityContainer< T, BinaryOperation, ExplicitIdentity, enable_if_t< IsKnownIdentityOp< T, BinaryOperation >::value > > Class Template Reference

#include <sycl/reduction.hpp>

Collaboration diagram for sycl::_V1::detail::ReductionIdentityContainer< T, BinaryOperation, ExplicitIdentity, enable_if_t< IsKnownIdentityOp< T, BinaryOperation >::value > >:

Public Member Functions

 ReductionIdentityContainer (const T &)
 
 ReductionIdentityContainer ()
 

Static Public Member Functions

static constexpr T getIdentity ()
 Returns the statically known identity value. More...
 

Static Public Attributes

static constexpr bool has_identity = true
 

Detailed Description

template<typename T, class BinaryOperation, bool ExplicitIdentity>
class sycl::_V1::detail::ReductionIdentityContainer< T, BinaryOperation, ExplicitIdentity, enable_if_t< IsKnownIdentityOp< T, BinaryOperation >::value > >

Definition at line 391 of file reduction.hpp.

Constructor & Destructor Documentation

◆ ReductionIdentityContainer() [1/2]

template<typename T , class BinaryOperation , bool ExplicitIdentity>
sycl::_V1::detail::ReductionIdentityContainer< T, BinaryOperation, ExplicitIdentity, enable_if_t< IsKnownIdentityOp< T, BinaryOperation >::value > >::ReductionIdentityContainer ( const T &  )
inline

Definition at line 397 of file reduction.hpp.

◆ ReductionIdentityContainer() [2/2]

template<typename T , class BinaryOperation , bool ExplicitIdentity>
sycl::_V1::detail::ReductionIdentityContainer< T, BinaryOperation, ExplicitIdentity, enable_if_t< IsKnownIdentityOp< T, BinaryOperation >::value > >::ReductionIdentityContainer ( )
inline

Definition at line 398 of file reduction.hpp.

Member Function Documentation

◆ getIdentity()

template<typename T , class BinaryOperation , bool ExplicitIdentity>
static constexpr T sycl::_V1::detail::ReductionIdentityContainer< T, BinaryOperation, ExplicitIdentity, enable_if_t< IsKnownIdentityOp< T, BinaryOperation >::value > >::getIdentity ( )
inlinestaticconstexpr

Returns the statically known identity value.

Definition at line 401 of file reduction.hpp.

Member Data Documentation

◆ has_identity

template<typename T , class BinaryOperation , bool ExplicitIdentity>
constexpr bool sycl::_V1::detail::ReductionIdentityContainer< T, BinaryOperation, ExplicitIdentity, enable_if_t< IsKnownIdentityOp< T, BinaryOperation >::value > >::has_identity = true
staticconstexpr

Definition at line 395 of file reduction.hpp.


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