MCPcopy Create free account
hub / github.com/build2/build2 / cmdline_prepend

Function cmdline_prepend

libbuild2/variable.cxx:2615–2628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2613 }
2614
2615 static void
2616 cmdline_prepend (value& v, names&& ns, const variable*)
2617 {
2618 if (!v)
2619 {
2620 new (&v.data_) cmdline ();
2621 v.null = false;
2622 }
2623
2624 auto& x (v.as<cmdline> ());
2625 x.insert (x.begin (),
2626 make_move_iterator (ns.begin ()),
2627 make_move_iterator (ns.end ()));
2628 }
2629
2630 static names_view
2631 cmdline_reverse (const value& v, names&, bool)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected