mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
24 lines
615 B
C++
24 lines
615 B
C++
//===-- 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
|