Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
drake::range_view_of Concept Reference

Detailed Description

Concept that constrains the range R to be a std::ranges::view where the range's value type is exactly T.

This enables documenting the return type of range-returning functions, without promising a concrete type of range.

This concept should not be used by code outside of Drake (it is not Stable API); it is intended only for use by Drake's documentation.

#include <drake/common/ranges.h>

Concept definition

template<typename R, typename T>
std::ranges::view<R> && std::same_as<std::ranges::range_value_t<R>, T>
Concept that constrains the range R to be a std::ranges::view where the range's value type is exactly...
Definition ranges.h:14