WPILibC++ 2024.3.2
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
10namespace wpi {
11
12template <class Derived, class Base>
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
Definition: DecayedDerivedFrom.h:13
Definition: ntcore_cpp.h:26