![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
An opt-in trait to indicate that a range type is a borrowed range. More...

Additional Inherited Members | |
Public Types inherited from std::integral_constant< bool, Value >< false > | |
| using | type |
| The type of this class. | |
| using | type |
| The type of this class. | |
| using | value_type |
| The type of the value. | |
| using | value_type |
| The type of the value. | |
Public Member Functions inherited from std::integral_constant< bool, Value >< false > | |
| constexpr | operator value_type () const noexcept |
Implicit conversion to Type. | |
| constexpr | operator value_type () const noexcept |
Implicit conversion to Type. | |
| constexpr | operator value_type () const noexcept |
Implicit conversion to Type. | |
| constexpr | operator value_type () const noexcept |
Implicit conversion to Type. | |
| constexpr auto | operator() () const noexcept -> value_type |
| Nullary function call operator. | |
| constexpr auto | operator() () const noexcept -> value_type |
| Nullary function call operator. | |
| constexpr auto | operator() () const noexcept -> value_type |
| Nullary function call operator. | |
| constexpr auto | operator() () const noexcept -> value_type |
| Nullary function call operator. | |
Static Public Attributes inherited from std::integral_constant< bool, Value >< false > | |
| static constexpr value_type | value |
| The constant. | |
| static constexpr value_type | value |
| The constant. | |
| static constexpr value_type | value |
| The constant. | |
| static constexpr value_type | value |
| The constant. | |
An opt-in trait to indicate that a range type is a borrowed range.
| Rng | The range type to check. |
A borrowed range is a range whose iterators remain valid even after the range object is destroyed: for example arene::base::span and arene::base::string_view are borrowed ranges, while arene::base::inline_vector and arene::base::inline_string are not.
Users may specialize enable_borrowed_range for their range types to indicate that they are borrowed ranges by providing a static value member of type bool which indicates if the range type is a borrowed range or not (typically by inheriting from std::true_type if it is unconditional). The default specialization is false .