Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 571 Bytes

Value.md

File metadata and controls

40 lines (26 loc) · 571 Bytes

<CppML/Vocabulary/Value.hpp>

Table of Contents

Value

template <typename T, T t> struct Value {
  using type = T;
  static constexpr T value = t;
};

Value<T, t>

Value<T, t> a type-value of type T, with value t.

Bool

template <bool B> using Bool = Value<bool, B>;

Bool<B>

Bool<B> represents a boolean type-value.

Int

template <bool N> using Int = Value<int, N>;

Int<N>

Int<N> represents an integer type-value.