KiCad PCB EDA Suite
commit.cpp File Reference
#include <algorithm>
#include <commit.h>
#include <eda_item.h>

Go to the source code of this file.

Functions

template<class Container , class F >
void eraseIf (Container &c, F &&f)
 

Function Documentation

◆ eraseIf()

template<class Container , class F >
void eraseIf ( Container &  c,
F &&  f 
)

Definition at line 138 of file commit.cpp.

139 {
140  c.erase( std::remove_if( c.begin(),
141  c.end(),
142  std::forward<F>( f ) ),
143  c.end() );
144 }

Referenced by COMMIT::makeEntry().