Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #960

Closed
Open
Created Aug 01, 2018 by Mark Olesen@markMaintainer

require secondary template parameter for findLower

findLower has typename ListType::const_reference val for its value parameter, which limits the type of comparison predicate.

Change needed for #801 (closed) to use for a binary search on a PtrList of XXX. For example,

const polyPatchList& patches = *this;

return
    findLower
    (
        patches,
        faceIndex,
        0,
        [](const polyPatch& p, label val) { return (p.start() <= val); }
    );
Edited Aug 02, 2018 by Mark Olesen
Assignee
Assign to
Time tracking