Satisfied when T is U or const U, matching both U& and const U&.

Synopsis

Declared in <folly/coro/safe/Captures.h>

template<
    typename T,
    typename U>
concept const_or_not = (std::same_as<T, U> || std::same_as<T, const U>);

Created with MrDocs