folly::is_contiguous_range_v

True when R is a contiguous range.

Synopsis

Declared in <folly/container/range_traits.h>

template<typename R>
constexpr bool is_contiguous_range_v = detail::is_contiguous_range_v_<R>;

Description

True when any of: * std::ranges::contiguous_range holds, if available * is_bounded_array_v holds * certain conditions using member types or type aliases size_type and value_type and member functions size() and data() Otherwise false.

Necessarily true if the given type is any of: * T[S], ie a bounded array * std::array * std::basic_string * std::basic_string_view * std::span * std::vector

Rejects incomplete class/union types, even if they would be accepted when completed.