mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
16 lines
447 B
C++
16 lines
447 B
C++
// Copyright (c) FIRST and other WPILib contributors.
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
#pragma once
|
|
|
|
#include <concepts>
|
|
|
|
namespace frc {
|
|
template <typename T>
|
|
concept WheelPositions =
|
|
std::copy_constructible<T> && requires(T a, T b, double t) {
|
|
{ a.Interpolate(b, t) } -> std::convertible_to<T>;
|
|
};
|
|
} // namespace frc
|