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
7namespace 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.
11template <class T>
13 void operator()(T*) const noexcept {};
14};
15
16} // namespace wpi
Definition: ntcore_cpp.h:26
Definition: NullDeleter.h:12
void operator()(T *) const noexcept
Definition: NullDeleter.h:13