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
template<>
inline TypeTraits make()
template<>
inline TypeTraits make()
template<>
constexpr bool isSimpleType()
template<>
constexpr bool isSimpleType()
template<>
constexpr bool requiresMetadata()

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()