Skip to content
Snippets Groups Projects
Closed simplify inplace ListOps
  • View options
  • simplify inplace ListOps

  • View options
  • Closed Issue created

    With all list types being movable, can now collapse out the code duplication of things like inplaceReorder. Eg,

    template<unsigned Width>
    void Foam::inplaceReorder
    (
        const labelUList& oldToNew,
        PackedList<Width>& input,
        const bool prune
    )
    {
        input = reorder(oldToNew, input, prune);
    }

    since the rvalue returned from reorder() now hooks into the move assignment operator

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading