WPILibC++
2024.3.2
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:
ntcore_cpp.h:26
wpi::NullDeleter
Definition:
NullDeleter.h:12
wpi::NullDeleter::operator()
void operator()(T *) const noexcept
Definition:
NullDeleter.h:13
wpi
NullDeleter.h
Generated on Wed Mar 13 2024 05:20:41 for WPILibC++ by
1.9.4