location loc)
{
/* Treat std::vector as an array, relying on it not being resized: */
- field *as_array_of_wrappers = &fields[0];
+ field *as_array_of_wrappers = fields.data ();
/* Treat the array as being of the underlying pointers, relying on
the wrapper type being such a pointer internally. */
location loc)
{
/* Treat std::vector as an array, relying on it not being resized: */
- param *as_array_of_wrappers = ¶ms[0];
+ param *as_array_of_wrappers = params.data ();
/* Treat the array as being of the underlying pointers, relying on
the wrapper type being such a pointer internally. */
std::vector<rvalue> elements) const
{
/* Treat std::vector as an array, relying on it not being resized: */
- rvalue *as_array_of_wrappers = &elements[0];
+ rvalue *as_array_of_wrappers = elements.data ();
/* Treat the array as being of the underlying pointers, relying on
the wrapper type being such a pointer internally. */
location loc)
{
/* Treat std::vector as an array, relying on it not being resized: */
- rvalue *as_array_of_wrappers = &args[0];
+ rvalue *as_array_of_wrappers = args.data ();
/* Treat the array as being of the underlying pointers, relying on
the wrapper type being such a pointer internally. */
location loc)
{
/* Treat std::vector as an array, relying on it not being resized: */
- case_ *as_array_of_wrappers = &cases[0];
+ case_ *as_array_of_wrappers = cases.data ();
/* Treat the array as being of the underlying pointers, relying on
the wrapper type being such a pointer internally. */
location loc)
{
/* Treat std::vector as an array, relying on it not being resized: */
- block *as_array_of_wrappers = &goto_blocks[0];
+ block *as_array_of_wrappers = goto_blocks.data ();
/* Treat the array as being of the underlying pointers, relying on
the wrapper type being such a pointer internally. */
{
field *pfields = nullptr;
if (fields.size ())
- pfields = &fields[0];
+ pfields = fields.data ();
gcc_jit_field **fields_arr =
reinterpret_cast<gcc_jit_field **> (pfields);
rvalue *pvalues = nullptr;
if (values.size ())
- pvalues = &values[0];
+ pvalues = values.data ();
gcc_jit_rvalue **values_arr =
reinterpret_cast<gcc_jit_rvalue **> (pvalues);
{
rvalue *pvalues = nullptr;
if (values.size ())
- pvalues = &values[0];
+ pvalues = values.data ();
gcc_jit_rvalue **values_arr =
reinterpret_cast<gcc_jit_rvalue **> (pvalues);