1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
//===-- slice.h - jit support -----------------------------------*- C++ -*-===//
//
// LDC – the LLVM D compiler
//
// This file is distributed under the Boost Software License. See the LICENSE
// file for details.
//
//===----------------------------------------------------------------------===//
//
// Jit runtime - simple memory slice class.
//
//===----------------------------------------------------------------------===//
#ifndef SLICE_HPP
#define SLICE_HPP
#include <cstddef> //size_t
template <typename T> struct Slice final {
size_t len;
T *data;
};
#endif // SLICE_HPP
|