WPILibC++
2027.0.0-alpha-2
Loading...
Searching...
No Matches
DecayedDerivedFrom.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
#include <concepts>
8
#include <type_traits>
9
10
namespace
wpi
{
11
12
template
<
class
Derived,
class
Base>
13
concept
DecayedDerivedFrom
=
14
std::derived_from<std::decay_t<Derived>, std::decay_t<Base>> &&
15
std::convertible_to<std::decay_t<Derived>*, std::decay_t<Base>*>;
16
17
}
// namespace wpi
wpi::DecayedDerivedFrom
Definition
DecayedDerivedFrom.h:13
wpi
Definition
ntcore_cpp.h:26
wpi
DecayedDerivedFrom.h
Generated on Wed Jul 23 2025 00:48:18 for WPILibC++ by
1.12.0