KiCad PCB EDA Suite
commit.cpp File Reference
#include <algorithm>
#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 129 of file commit.cpp.

Referenced by COMMIT::makeEntry().

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