std::ranges::viewable_range(3cxx)

πŸ“¦
version 16-20260322 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

std::ranges::viewable_range β€” A range which can be safely converted to a view. Ok bestie, you're in the 3cxx manual, and this is the page for that exact concept. She's giving "range that can become a view without things going feral." Periodt. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ranges>

✨ Concept definition ✨

       template<typename _Tp>
       concept std::ranges::viewable_range =  range<_Tp>
             && ((view<remove_cvref_t<_Tp>> && constructible_from<remove_cvref_t<_Tp>, _Tp>)
                 || (!view<remove_cvref_t<_Tp>>
                     && (is_lvalue_reference_v<_Tp>
                         || (movable<remove_reference_t<_Tp>>
                             && !__detail::__is_initializer_list<remove_cvref_t<_Tp>>))))

🌸 Detailed Description 🌸

A range which can be safely converted to a view. That's the whole description, no cap. If you're wondering why it exists, it's literally the vibe check for converting a range into a view. πŸ’…

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.

So no human author, just Doxygen doing its automated main character thing. πŸ€–βœ¨


Okurrr, that's the page! Source/version: libstdc++. Date: not listed on this one, so she's undated and timeless. Bye bestie, slay! πŸ«ΆπŸ’–πŸŒˆ

πŸ“¦ where this page comes from