TypeTraits

#include <poplar/TypeTraits.hpp>
namespace poplar

Poplar classes and functions.

struct TypeTraits
#include <TypeTraits.hpp>

A structure to provide information about arithmetic (integer and floating point) types.

Public Functions

inline bool isSimpleType() const

Public Members

std::size_t size
std::size_t align
bool isIntegral
bool isFloat
bool isSigned

Public Static Functions

template<typename T>
static TypeTraits make()
template<typename T>
static constexpr bool isSimpleType()

Test if argument is a basic numeric type.

Return true if std::is_integral<> is true or if std::is_floating_point<> is true.

template<typename T>
static constexpr bool requiresMetadata()
template<>
static inline TypeTraits make()
template<>
static inline TypeTraits make()
template<>
static inline TypeTraits make()
template<>
static constexpr bool isSimpleType()
template<>
static constexpr bool isSimpleType()
template<>
static constexpr bool requiresMetadata()