cuda-kat
CUDA kernel author's tools
Classes | Macros | Typedefs
common.hpp File Reference

Basic type and macro definitions used throughout the KAT library. More...

#include <cstddef>
#include <type_traits>
#include <kat/detail/execution_space_specifiers.hpp>
#include <kat/detail/constexpr_by_cpp_version.hpp>

Go to the source code of this file.

Classes

struct  kat::conjunction<... >
 
struct  kat::conjunction< B >
 
struct  kat::conjunction< B, Bs... >
 
struct  kat::disjunction<... >
 
struct  kat::disjunction< B >
 
struct  kat::disjunction< B, Bs... >
 
struct  kat::negation< B >
 

Typedefs

using kat::size_t = std::size_t
 Used throughout the kat library for (non-negative) sizes and lengths of containers, memory regions and so on - on both the host and the device side. More...
 
template<bool B>
using kat::bool_constant = std::integral_constant< bool, B >
 
template<typename T , typename... Ts>
using kat::is_any_of = disjunction< std::is_same< T, Ts >... >
 

Detailed Description

Basic type and macro definitions used throughout the KAT library.

Typedef Documentation

§ size_t

using kat::size_t = typedef std::size_t

Used throughout the kat library for (non-negative) sizes and lengths of containers, memory regions and so on - on both the host and the device side.

Note
CUDA isn't explicit about this, but it also uses the standard library's size_t occasionally.