WPILibC++
2023.4.3-108-ge5452e3
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:
AprilTagFieldLayout.h:18
wpi
DecayedDerivedFrom.h
Generated on Mon Jul 10 2023 17:03:00 for WPILibC++ by
1.9.4