我如何要求(在 C++20 概念中)类型 T 是对浮点类型的引用?

How can I require (in a C++20 concept) that a type T be a reference to a floating point type?

在C++20概念库中,有std::floating_point<T>“当且仅当T是浮点类型时才满足”(ref)。但是我需要 T 成为对浮点类型的 reference。表达这个的 requires 从句是什么?

正如戴维斯在评论中所说,只需使用类型特征:

template <typename T>
concept is_floating_point_reference = 
    std::is_reference_v<T> &&
    std::floating_point<std::remove_reference_t<T>>;