unique_ptr.h
Go to the documentation of this file.
1
/*
2
* Copyright 2015-2022 CNRS-UM LIRMM, CNRS-AIST JRL
3
*/
4
5
#pragma once
6
7
#include <memory>
8
9
namespace
mc_rtc
10
{
11
18
template
<
class
T,
class
Deleter = std::default_delete<T>>
19
class
unique_ptr
:
public
std::unique_ptr<T, Deleter>
20
{
21
public
:
22
using
std::unique_ptr<T, Deleter>::unique_ptr;
23
24
void
reset
(
typename
std::unique_ptr<T, Deleter>::pointer ptr) { std::unique_ptr<T, Deleter>::reset(ptr); }
25
};
26
27
}
// namespace mc_rtc
mc_rtc::unique_ptr::reset
void reset(typename std::unique_ptr< T, Deleter >::pointer ptr)
Definition:
unique_ptr.h:24
mc_rtc
Definition:
Contact.h:87
mc_rtc::unique_ptr
Definition:
unique_ptr.h:19
include
mc_rtc
unique_ptr.h
Generated by
1.8.17