WPILibC++
2023.4.3-108-ge5452e3
NullDeleter.h
Go to the documentation of this file.
1
// Copyright (c) FIRST and other WPILib contributors.
2
// Open Source Software; you can modify and/or share it under the terms of
3
// the WPILib BSD license file in the root directory of this project.
4
5
#pragma once
6
7
namespace
wpi
{
8
9
// A struct to use as a deleter when a std::shared_ptr must wrap a raw pointer
10
// that is being deleted by someone else.
11
template
<
class
T>
12
struct
NullDeleter
{
13
void
operator()
(T*)
const
noexcept
{};
14
};
15
16
}
// namespace wpi
wpi
Definition:
AprilTagFieldLayout.h:18
wpi::NullDeleter
Definition:
NullDeleter.h:12
wpi::NullDeleter::operator()
void operator()(T *) const noexcept
Definition:
NullDeleter.h:13
wpi
NullDeleter.h
Generated on Mon Jul 10 2023 17:03:00 for WPILibC++ by
1.9.4