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

#include <sycl/reduction.hpp>

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

Public Member Functions

 ReductionIdentityContainer (const T &Identity)
 
getIdentity () const
 Returns the identity value given by user. More...
 

Static Public Attributes

static constexpr bool has_identity = true
 

Detailed Description

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

Definition at line 408 of file reduction.hpp.

Constructor & Destructor Documentation

◆ ReductionIdentityContainer()

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

Definition at line 414 of file reduction.hpp.

Member Function Documentation

◆ getIdentity()

template<typename T , class BinaryOperation >
T sycl::_V1::detail::ReductionIdentityContainer< T, BinaryOperation, true, enable_if_t<!IsKnownIdentityOp< T, BinaryOperation >::value > >::getIdentity ( ) const
inline

Returns the identity value given by user.

Definition at line 417 of file reduction.hpp.

Member Data Documentation

◆ has_identity

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

Definition at line 412 of file reduction.hpp.


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