constant< v > Struct Template Reference

constant&lt; v &gt; Struct Template Reference#

Composable Kernel: ck::constant< v > Struct Template Reference
ck::constant< v > Struct Template Reference

#include <integral_constant.hpp>

Inheritance diagram for ck::constant< v >:
ck::integral_constant< bool, B > ck::integral_constant< bool, false > ck::integral_constant< bool, true > ck::integral_constant< index_t, N > ck::integral_constant< long_index_t, N > ck::integral_constant< T, v > ck::is_floating_point< double > ck::is_floating_point< float > ck::is_floating_point< long double > ck::is_integral< bool > ck::is_integral< char > ck::is_integral< char16_t > ck::is_integral< char32_t > ck::is_integral< int > ck::is_integral< long > ck::is_integral< long long > ck::is_integral< short > ck::is_integral< signed char > ck::is_integral< unsigned char > ck::is_integral< unsigned int > ck::is_integral< unsigned long > ck::is_integral< unsigned long long > ck::is_integral< unsigned short > ck::is_integral< wchar_t > ck::is_same< typename scalar_type< remove_cvref_t< X > >::type, typename scalar_type< remove_cvref_t< Y > >::type > ck::is_same< arithmetic_sequence_gen< 0, SeqMap::Size(), 1 >::type, sequence_sort< SeqMap, math::less< index_t > >::type > ck::is_same< X, X > ck::is_floating_point< X > ck::is_integral< X > ck::is_same< X, Y > ck::is_floating_point< double > ck::is_floating_point< float > ck::is_floating_point< long double > ck::is_integral< bool > ck::is_integral< char > ck::is_integral< char16_t > ck::is_integral< char32_t > ck::is_integral< int > ck::is_integral< long > ck::is_integral< long long > ck::is_integral< short > ck::is_integral< signed char > ck::is_integral< unsigned char > ck::is_integral< unsigned int > ck::is_integral< unsigned long > ck::is_integral< unsigned long long > ck::is_integral< unsigned short > ck::is_integral< wchar_t > ck::is_same< X, X >

Public Types

using value_type = decltype(v)
using type = constant

Public Member Functions

__host__ __device__ constexpr operator value_type () const noexcept
__host__ __device__ constexpr value_type operator() () const noexcept

Static Public Attributes

static constexpr value_type value = v

Member Typedef Documentation

◆ type

template<auto v>
using ck::constant< v >::type = constant

◆ value_type

template<auto v>
using ck::constant< v >::value_type = decltype(v)

Member Function Documentation

◆ operator value_type()

template<auto v>
__host__ __device__ constexpr ck::constant< v >::operator value_type ( ) const
inlineconstexprnoexcept

◆ operator()()

template<auto v>
__host__ __device__ constexpr value_type ck::constant< v >::operator() ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ value

template<auto v>
value_type ck::constant< v >::value = v
staticconstexpr

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