9#ifndef LLDB_SOURCE_API_UTILS_H
10#define LLDB_SOURCE_API_UTILS_H
12#include "llvm/ADT/STLExtras.h"
17template <
typename T> std::unique_ptr<T>
clone(
const std::unique_ptr<T> &src) {
19 return std::make_unique<T>(*src);
23template <
typename T> std::shared_ptr<T>
clone(
const std::shared_ptr<T> &src) {
25 return std::make_shared<T>(*src);
A class that represents a running process on the host machine.
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)