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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 127 of file commit.cpp.

Referenced by COMMIT::makeEntry().

128 {
129  c.erase( std::remove_if( c.begin(),
130  c.end(),
131  std::forward<F>( f ) ),
132  c.end() );
133 }