REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
Loading...
Searching...
No Matches
real::detail::small_vec< T, InlineCapacity >::inline_block Struct Reference

Inline element block. A struct (not a bare C array) so the union ctor can activate it as a whole with construct_at in a constant expression, while inline_data still indexes a plain C array — which the static analyzer can bound (a std::array's operator[] hides the extent and trips a false out-of-bounds on transfer_range). More...

Public Attributes

elems [InlineCapacity]
 The inline elements, as a plain C array the analyzer can bound.
 

Detailed Description

template<typename T, std::size_t InlineCapacity>
struct real::detail::small_vec< T, InlineCapacity >::inline_block

Inline element block. A struct (not a bare C array) so the union ctor can activate it as a whole with construct_at in a constant expression, while inline_data still indexes a plain C array — which the static analyzer can bound (a std::array's operator[] hides the extent and trips a false out-of-bounds on transfer_range).


The documentation for this struct was generated from the following file: