WPILibC++
2027.0.0-alpha-4
Loading...
Searching...
No Matches
DecayedDerivedFrom.hpp
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::util
{
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::util
wpi::util::DecayedDerivedFrom
Definition
DecayedDerivedFrom.hpp:13
wpi::util
Definition
raw_os_ostream.hpp:19
wpi
util
DecayedDerivedFrom.hpp
Generated on
for WPILibC++ by
1.15.0